From b794292b212f680d35e07c80c3f64e96d705b2de Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Wed, 4 Jan 2017 15:57:28 -0800 Subject: [PATCH] Use target flags to build only one architecture for iOS, building only an ARMv7 build will misbehave if an older ARM64 binary is present --- lime/tools/helpers/IOSHelper.hx | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/lime/tools/helpers/IOSHelper.hx b/lime/tools/helpers/IOSHelper.hx index 4d21b4c48..fc78f4d09 100644 --- a/lime/tools/helpers/IOSHelper.hx +++ b/lime/tools/helpers/IOSHelper.hx @@ -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"); }