Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions Simulator.m
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,17 @@ + (NSArray *)availableSDKs {
}

- (int)launch {
WaxLog(@"Launching '%@' on'%@'", _appPath, [_sdk sdkDisplayName]);
WaxLog(@"Launching '%@' on '%@'", _appPath, [_sdk sdkDisplayName]);

DTiPhoneSimulatorApplicationSpecifier *appSpec = [DTiPhoneSimulatorApplicationSpecifier specifierWithApplicationPath:_appPath];
if (!appSpec) {
WaxLog(@"Could not load application specifier for '%@'", _appPath);
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]];
Expand Down