From 66bbb933cc08cbd2ef083d1028d665fb5c19d9f3 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 89d4cd0..2e4f492 100644 --- a/Simulator.m +++ b/Simulator.m @@ -70,7 +70,7 @@ + (NSArray *)availableSDKs { } - (int)launch { - WaxLog(@"Launching '%@' on'%@'", _appPath, [_sdk sdkDisplayName]); + WaxLog(@"Launching '%@' on '%@'", _appPath, [_sdk sdkDisplayName]); DTiPhoneSimulatorApplicationSpecifier *appSpec = [DTiPhoneSimulatorApplicationSpecifier specifierWithApplicationPath:_appPath]; if (!appSpec) { @@ -78,11 +78,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 setSimulatedDeviceFamily:_family]; [config setSimulatedApplicationShouldWaitForDebugger:NO]; [config setSimulatedApplicationLaunchArgs:_args];