Skip to content

Commit 47484fd

Browse files
fix: tns debug ios should work on device
Currently `tns debug ios` hangs when executed for device. The problem is that we pass `"waitForDebugger": false` to ios-device-lib binary, which can parse only strings. The value `false` is boolean, not string, so ios-device-lib binary crashes, but CLI does not understand this and hangs. Fix this by ensuring we pass waitForDebugger as string.
1 parent 0001e76 commit 47484fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/common/mobile/ios/device/ios-application-manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export class IOSApplicationManager extends ApplicationManagerBase {
102102
}
103103

104104
private async runApplicationCore(appData: Mobile.IStartApplicationData): Promise<void> {
105-
const waitForDebugger = appData.waitForDebugger && appData.waitForDebugger.toString();
105+
const waitForDebugger = (!!appData.waitForDebugger).toString();
106106
await this.$iosDeviceOperations.start([{ deviceId: this.device.deviceInfo.identifier, appId: appData.appId, ddi: this.$options.ddi, waitForDebugger }]);
107107
}
108108

0 commit comments

Comments
 (0)