Skip to content

Commit

Permalink
[ISSUE-384] Pass simulator preferences file when clone simulator feat…
Browse files Browse the repository at this point in the history
…ure is enabled (#413)

Fixing a bug where the simulator preferences file was not being passed in the clone simulator code path.
  • Loading branch information
ravimandala committed Jan 28, 2020
1 parent 8d3a041 commit 818c3fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bp/src/BPSimulator.m
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@ - (void)cloneSimulatorWithDeviceName:(NSString *)deviceName completion:(void (^)
completion(error);
});
} else {
if (__self.config.simulatorPreferencesFile) {
[__self copySimulatorPreferencesFile:__self.config.simulatorPreferencesFile];
}

dispatch_async(dispatch_get_main_queue(), ^{
[__self bootWithCompletion:^(NSError *error) {
dispatch_async(dispatch_get_main_queue(), ^{
Expand Down

0 comments on commit 818c3fb

Please sign in to comment.