Add x86_64 as the default iOS simulator arch

This commit is contained in:
Joshua Granick
2016-12-29 12:15:51 -08:00
parent cd63931ff7
commit ec7c449e40
2 changed files with 5 additions and 3 deletions

View File

@@ -39,10 +39,11 @@ class IOSHelper {
var iphoneVersion = project.environment.get ("IPHONE_VER");
var commands = [ "-configuration", configuration, "PLATFORM_NAME=" + platformName, "SDKROOT=" + platformName + iphoneVersion ];
if (project.targetFlags.exists("simulator")) {
if (project.targetFlags.exists ("simulator")) {
commands.push ("-arch");
commands.push ("i386");
//commands.push ("i386");
commands.push ("x86_64");
}
@@ -92,7 +93,7 @@ class IOSHelper {
if (!project.environment.exists ("IPHONE_VER") || project.environment.get ("IPHONE_VER") == "4.2") {
if (!project.environment.exists("DEVELOPER_DIR")) {
if (!project.environment.exists ("DEVELOPER_DIR")) {
var process = new Process ("xcode-select", [ "--print-path" ]);
var developerDir = process.stdout.readLine ();

View File

@@ -232,6 +232,7 @@ class IOSPlatform extends PlatformTarget {
context.CURRENT_ARCHS = "( " + valid_archs.join(",") + ") ";
valid_archs.push ("x86_64");
valid_archs.push ("i386");
context.VALID_ARCHS = valid_archs.join(" ");