Skip to content

Commit 8c92d5b

Browse files
committed
Merge pull request #1166 from NativeScript/kerezov/revert-release-for-device
Revert "Always build --for-device with --release"
2 parents 965770e + 4aac47f commit 8c92d5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/services/ios-project-service.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
172172
}
173173

174174
let args: string[] = [];
175-
if(this.$options.forDevice || this.$options.release) {
175+
if(this.$options.forDevice) {
176176
args = basicArgs.concat([
177177
"-sdk", "iphoneos",
178178
'ARCHS=armv7 arm64',
@@ -190,7 +190,7 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
190190

191191
this.$childProcess.spawnFromEvent("xcodebuild", args, "exit", {cwd: this.$options, stdio: 'inherit'}).wait();
192192

193-
if(this.$options.forDevice || this.$options.release) {
193+
if(this.$options.forDevice) {
194194
let buildOutputPath = path.join(projectRoot, "build", "device");
195195

196196
// Produce ipa file

0 commit comments

Comments
 (0)