Skip to content

Commit e556e07

Browse files
author
Mitko-Kerezov
committed
Pass -destination when building for iOS Simulator
Instead of passing architectures pass `-destination` parameter. This prevents a bug in Xcode 7.2 http://www.openradar.me/23857648
1 parent c9653e0 commit e556e07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/services/ios-project-service.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
3030
private $errors: IErrors,
3131
private $logger: ILogger,
3232
private $iOSEmulatorServices: Mobile.IEmulatorPlatformServices,
33+
private $iOSSimResolver: Mobile.IiOSSimResolver,
3334
private $options: IOptions,
3435
private $injector: IInjector,
3536
$projectDataService: IProjectDataService,
@@ -202,8 +203,7 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
202203
} else {
203204
args = basicArgs.concat([
204205
"-sdk", "iphonesimulator",
205-
"-arch", "i386",
206-
"VALID_ARCHS=\"i386\"",
206+
"-destination", `platform=iOS Simulator,name=${this.$iOSSimResolver.iOSSim.getSimulatorName()}`,
207207
"CONFIGURATION_BUILD_DIR=" + path.join(projectRoot, "build", "emulator"),
208208
"CODE_SIGN_IDENTITY="
209209
]);

0 commit comments

Comments
 (0)