Skip to content

Commit a2d926d

Browse files
Fix debug for iOS devices (#2717)
Currently the `tns debug ios` command tries to find already built result for iOS Simulator. The problem is incorrect value passed to `buildForDevice` property. It should be set based on the current device.
1 parent cb23d5f commit a2d926d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/commands/debug.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export abstract class DebugPlatformCommand implements ICommand {
5555

5656
await deviceAppData.device.applicationManager.stopApplication(applicationId);
5757

58-
const buildConfig: IBuildConfig = _.merge({ buildForDevice: this.$options.forDevice }, deployOptions);
58+
const buildConfig: IBuildConfig = _.merge({ buildForDevice: !deviceAppData.device.isEmulator }, deployOptions);
5959
debugData.pathToAppPackage = this.$platformService.lastOutputPath(this.debugService.platform, buildConfig, projectData);
6060

6161
this.printDebugInformation(await this.debugService.debug(debugData, debugOptions));

0 commit comments

Comments
 (0)