From 2c8f9fa3a2c0d9ac0127febbc11c89963c58d28a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Fri, 9 Sep 2016 10:34:37 -0400 Subject: [PATCH] nitc iOS: fix moving binary in release compilation mode MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- src/platform/ios.nit | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/platform/ios.nit b/src/platform/ios.nit index 3178b49..d8a68a9 100644 --- a/src/platform/ios.nit +++ b/src/platform/ios.nit @@ -166,10 +166,11 @@ private class IOSToolchain # Compile with `xcodebuild` # # TODO support more than the iPhone and the simulator. + var compile_mode = if release then "Release" else "Debug" var args = ["sh", "-c", "cd {ios_project_root}; " + "xcodebuild -target '{project_name}' " + "-destination 'platform=iOS Simulator,name=iPhone' " + - "-configuration {if release then "Release" else "Debug"} " + + "-configuration {compile_mode} " + "ONLY_ACTIVE_ARCH=NO "+ "-sdk iphonesimulator build"] toolcontext.exec_and_check(args, "iOS project error") @@ -183,7 +184,7 @@ private class IOSToolchain end end - args = ["mv", "{ios_project_root}/build/Debug-iphonesimulator/{project_name}.app", outfile] + args = ["mv", "{ios_project_root}/build/{compile_mode}-iphonesimulator/{project_name}.app", outfile] toolcontext.exec_and_check(args, "iOS project error") end end -- 1.7.9.5