Use target flags to build only one architecture for iOS, building only an ARMv7 build will misbehave if an older ARM64 binary is present

This commit is contained in:
Joshua Granick
2017-01-04 15:57:28 -08:00
parent c18c99649f
commit b794292b21

View File

@@ -45,19 +45,20 @@ class IOSHelper {
//commands.push ("i386");
commands.push ("x86_64");
} else if (!project.targetFlags.exists ("final")) {
} else if (project.targetFlags.exists ("armv7")) {
for (architecture in project.architectures) {
if (architecture == ARMV7) {
commands.push ("-arch");
commands.push ("armv7");
break;
}
}
commands.push ("-arch");
commands.push ("armv7");
} else if (project.targetFlags.exists ("armv7s")) {
commands.push ("-arch");
commands.push ("armv7s");
} else if (project.targetFlags.exists ("arm64")) {
commands.push ("-arch");
commands.push ("arm64");
}