Skip to content

Commit bad1fcb

Browse files
committed
fix: respect --for-device option when building for iOS device
`tns build ios --for-device` command doesn't produce .ipa as `--for-device` option is not respected and the application is built for simulator.
1 parent aad09a3 commit bad1fcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/data/build-data.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class BuildData extends PrepareData implements IBuildData {
1515
this.device = data.device;
1616
this.emulator = data.emulator;
1717
this.clean = data.clean;
18-
this.buildForDevice = data.buildForDevice;
18+
this.buildForDevice = data.buildForDevice || data.forDevice;
1919
this.buildOutputStdio = data.buildOutputStdio;
2020
this.outputPath = data.outputPath;
2121
this.copyTo = data.copyTo;

0 commit comments

Comments
 (0)