From 3f278d5726f6b739eb7fd10df92094a38faf9976 Mon Sep 17 00:00:00 2001 From: rosen-vladimirov Date: Thu, 13 Apr 2017 18:16:07 +0300 Subject: [PATCH] Fix debug for iOS devices 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. --- lib/commands/debug.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/commands/debug.ts b/lib/commands/debug.ts index 1620567f9f..62e4dc312b 100644 --- a/lib/commands/debug.ts +++ b/lib/commands/debug.ts @@ -55,7 +55,7 @@ export abstract class DebugPlatformCommand implements ICommand { await deviceAppData.device.applicationManager.stopApplication(applicationId); - const buildConfig: IBuildConfig = _.merge({ buildForDevice: this.$options.forDevice }, deployOptions); + const buildConfig: IBuildConfig = _.merge({ buildForDevice: !deviceAppData.device.isEmulator }, deployOptions); debugData.pathToAppPackage = this.$platformService.lastOutputPath(this.debugService.platform, buildConfig, projectData); this.printDebugInformation(await this.debugService.debug(debugData, debugOptions));