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:
@@ -45,19 +45,20 @@ class IOSHelper {
|
|||||||
//commands.push ("i386");
|
//commands.push ("i386");
|
||||||
commands.push ("x86_64");
|
commands.push ("x86_64");
|
||||||
|
|
||||||
} else if (!project.targetFlags.exists ("final")) {
|
} else if (project.targetFlags.exists ("armv7")) {
|
||||||
|
|
||||||
for (architecture in project.architectures) {
|
commands.push ("-arch");
|
||||||
|
commands.push ("armv7");
|
||||||
if (architecture == ARMV7) {
|
|
||||||
|
} else if (project.targetFlags.exists ("armv7s")) {
|
||||||
commands.push ("-arch");
|
|
||||||
commands.push ("armv7");
|
commands.push ("-arch");
|
||||||
break;
|
commands.push ("armv7s");
|
||||||
|
|
||||||
}
|
} else if (project.targetFlags.exists ("arm64")) {
|
||||||
|
|
||||||
}
|
commands.push ("-arch");
|
||||||
|
commands.push ("arm64");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user