Add x86_64 as the default iOS simulator arch
This commit is contained in:
@@ -39,10 +39,11 @@ class IOSHelper {
|
|||||||
var iphoneVersion = project.environment.get ("IPHONE_VER");
|
var iphoneVersion = project.environment.get ("IPHONE_VER");
|
||||||
var commands = [ "-configuration", configuration, "PLATFORM_NAME=" + platformName, "SDKROOT=" + platformName + iphoneVersion ];
|
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 ("-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 ("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 process = new Process ("xcode-select", [ "--print-path" ]);
|
||||||
var developerDir = process.stdout.readLine ();
|
var developerDir = process.stdout.readLine ();
|
||||||
|
|||||||
@@ -232,6 +232,7 @@ class IOSPlatform extends PlatformTarget {
|
|||||||
|
|
||||||
context.CURRENT_ARCHS = "( " + valid_archs.join(",") + ") ";
|
context.CURRENT_ARCHS = "( " + valid_archs.join(",") + ") ";
|
||||||
|
|
||||||
|
valid_archs.push ("x86_64");
|
||||||
valid_archs.push ("i386");
|
valid_archs.push ("i386");
|
||||||
|
|
||||||
context.VALID_ARCHS = valid_archs.join(" ");
|
context.VALID_ARCHS = valid_archs.join(" ");
|
||||||
|
|||||||
Reference in New Issue
Block a user