Skip to content

Commit 19c85bf

Browse files
committed
fix: fix debug on ios simulator
1 parent ed0a028 commit 19c85bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/services/ios-device-debug-service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ export class IOSDeviceDebugService extends DebugServiceBase implements IDeviceDe
5858

5959
private async validateUSBConnectedDevice() {
6060
const device = await this.$devicesService.getDevice(this.deviceIdentifier);
61-
if (device.deviceInfo.connectionTypes.indexOf(DeviceConnectionType.USB) === -1) {
61+
if (device.deviceInfo.connectionTypes.indexOf(DeviceConnectionType.USB) === -1 && device.deviceInfo.connectionTypes.indexOf(DeviceConnectionType.Local) === -1) {
6262
const deviceConnectionTypes = device.deviceInfo.connectionTypes.map(type => DeviceConnectionType[type]).join(", ");
63-
this.$errors.fail(`Debugging application requires a USB connection while the target device "${this.deviceIdentifier}" has connection type "${deviceConnectionTypes}".`);
63+
this.$errors.fail(`Debugging application requires a USB or LOCAL connection while the target device "${this.deviceIdentifier}" has connection type "${deviceConnectionTypes}".`);
6464
}
6565
}
6666

0 commit comments

Comments
 (0)