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