From 74356375b0f3da81f1048101df9e730d0de1ea5f Mon Sep 17 00:00:00 2001 From: Jason Felice Date: Tue, 19 Apr 2011 14:34:36 -0400 Subject: [PATCH] Use specified root rather than default when -s specified --- Simulator.m | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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]];