diff --git a/Simulator.m b/Simulator.m index 3da0487..bfb274a 100644 --- a/Simulator.m +++ b/Simulator.m @@ -63,7 +63,7 @@ + (NSArray *)availableSDKs { } - (int)launch { - WaxLog(@"Launching '%@' on'%@'", _appPath, [_sdk sdkDisplayName]); + WaxLog(@"Launching '%@' on '%@'", _appPath, [_sdk sdkDisplayName]); DTiPhoneSimulatorApplicationSpecifier *appSpec = [DTiPhoneSimulatorApplicationSpecifier specifierWithApplicationPath:_appPath]; if (!appSpec) { @@ -71,11 +71,9 @@ - (int)launch { return EXIT_FAILURE; } - DTiPhoneSimulatorSystemRoot *sdkRoot = [DTiPhoneSimulatorSystemRoot defaultRoot]; - DTiPhoneSimulatorSessionConfig *config = [[DTiPhoneSimulatorSessionConfig alloc] init]; [config setApplicationToSimulateOnStart:appSpec]; - [config setSimulatedSystemRoot:sdkRoot]; + [config setSimulatedSystemRoot:_sdk]; [config setSimulatedApplicationShouldWaitForDebugger:NO]; [config setSimulatedApplicationLaunchArgs:_args]; [config setSimulatedApplicationLaunchEnvironment:[[NSProcessInfo processInfo] environment]];