Skip to content

Commit 2fc2bdf

Browse files
committed
Fixes #119 - ios-sim crashes on version 3.0.0
1 parent 2617994 commit 2fc2bdf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/iPhoneSimulator.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ - (int)launchApp:(NSString *)path withFamily:(NSString *)family
377377
DTiPhoneSimulatorApplicationSpecifier *appSpec;
378378
DTiPhoneSimulatorSessionConfig *config;
379379
DTiPhoneSimulatorSession *session;
380-
NSError *error;
380+
NSError *error = nil;
381381

382382
NSFileManager *fileManager = [[[NSFileManager alloc] init] autorelease];
383383
if (!startOnly && ![fileManager fileExistsAtPath:path]) {
@@ -464,7 +464,7 @@ - (int)launchApp:(NSString *)path withFamily:(NSString *)family
464464
}
465465

466466
if (![session requestStartWithConfig:config timeout:timeout error:&error]) {
467-
nsprintf(@"Could not start simulator session: %@", error);
467+
nsprintf(@"Could not start simulator session: %@", [error localizedDescription]);
468468
return EXIT_FAILURE;
469469
}
470470

0 commit comments

Comments
 (0)