Skip to content

Commit 9326c76

Browse files
committed
Resurrect debug ios --emulator --start
1 parent 6a8db42 commit 9326c76

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

lib/common

lib/services/ios-debug-service.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import iOSProxyServices = require("./../common/mobile/ios/ios-proxy-services");
22
import iOSDevice = require("./../common/mobile/ios/ios-device");
3+
import iOSEmulatorService = require("./../common/mobile/ios/ios-emulator-services");
34
import net = require("net");
45
import ws = require("ws");
56
import stream = require("stream");
@@ -44,7 +45,7 @@ function connectEventually(factory: () => net.Socket, handler: (socket: net.Sock
4445
class IOSDebugService implements IDebugService {
4546
constructor(
4647
private $platformService: IPlatformService,
47-
private $iOSEmulatorServices: Mobile.IEmulatorPlatformServices,
48+
private $iOSEmulatorServices: iOSEmulatorService,
4849
private $devicesServices: Mobile.IDevicesServices,
4950
private $platformsData: IPlatformsData,
5051
private $projectData: IProjectData,
@@ -101,7 +102,7 @@ class IOSDebugService implements IDebugService {
101102
this.executeOpenDebuggerClient().wait();
102103
var projectId = this.$projectData.projectId;
103104
var attachRequestMessage = notification.attachRequest(projectId);
104-
// TODO: send notifications with ios-sim-portable
105+
this.$iOSEmulatorServices.postDarwinNotification(attachRequestMessage).wait();
105106
}).future<void>()();
106107
}
107108

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"gaze": "0.5.1",
3737
"iconv-lite": "0.4.4",
3838
"inquirer": "0.8.2",
39-
"ios-sim-portable": "1.0.7",
39+
"ios-sim-portable": "1.0.8",
4040
"lockfile": "1.0.0",
4141
"lodash": "3.6.0",
4242
"log4js": "0.6.22",

0 commit comments

Comments
 (0)