From df0a894dbd86c3ee000c9225f04e874a701a8038 Mon Sep 17 00:00:00 2001 From: Rosen Vladimirov Date: Mon, 9 Nov 2015 16:17:58 +0200 Subject: [PATCH] Always build --for-device with --release --- lib/services/ios-project-service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/services/ios-project-service.ts b/lib/services/ios-project-service.ts index a6936d384f..4a66d34d5c 100644 --- a/lib/services/ios-project-service.ts +++ b/lib/services/ios-project-service.ts @@ -172,7 +172,7 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ } let args: string[] = []; - if(this.$options.forDevice) { + if(this.$options.forDevice || this.$options.release) { args = basicArgs.concat([ "-sdk", "iphoneos", 'ARCHS=armv7 arm64', @@ -190,7 +190,7 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ this.$childProcess.spawnFromEvent("xcodebuild", args, "exit", {cwd: this.$options, stdio: 'inherit'}).wait(); - if(this.$options.forDevice) { + if(this.$options.forDevice || this.$options.release) { let buildOutputPath = path.join(projectRoot, "build", "device"); // Produce ipa file