diff --git a/lib/services/ios-debug-service.ts b/lib/services/ios-debug-service.ts index ac709a3922..279b33f631 100644 --- a/lib/services/ios-debug-service.ts +++ b/lib/services/ios-debug-service.ts @@ -76,13 +76,14 @@ class IOSDebugService implements IDebugService { this.$platformService.buildPlatform(this.platform).wait(); let emulatorPackage = this.$platformService.getLatestApplicationPackageForEmulator(platformData).wait(); - let child_process = this.$iOSEmulatorServices.startEmulator(emulatorPackage.packageName, { waitForDebugger: true, captureStdin: true, args: "--nativescript-debug-brk" }).wait(); + let child_process = this.$iOSEmulatorServices.startEmulator(emulatorPackage.packageName, { waitForDebugger: true, captureStdin: true, + args: "--nativescript-debug-brk", appId: this.$projectData.projectId }).wait(); let lineStream = byline(child_process.stdout); lineStream.on('data', (line: NodeBuffer) => { let lineText = line.toString(); - if(lineText && _.startsWith(lineText, emulatorPackage.packageName)) { - let pid = _.trimLeft(lineText, emulatorPackage.packageName + ": "); + if(lineText && _.startsWith(lineText, this.$projectData.projectId)) { + let pid = _.trimLeft(lineText, this.$projectData.projectId + ": "); this.$childProcess.exec(`lldb -p ${pid} -o "process continue"`); } else { diff --git a/package.json b/package.json index a9f24f1aed..3637f64512 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "gulp": "3.9.0", "iconv-lite": "0.4.11", "inquirer": "0.9.0", - "ios-sim-portable": "1.0.13", + "ios-sim-portable": "1.0.15", "lockfile": "1.0.1", "lodash": "3.10.0", "log4js": "0.6.26",