diff --git a/lib/commands/context.js b/lib/commands/context.js index 54eede2a2..b91ef8c21 100644 --- a/lib/commands/context.js +++ b/lib/commands/context.js @@ -439,10 +439,9 @@ const helpers = { * @returns {Promise} */ async getNewRemoteDebugger() { - let socketPath; - if (!this.isRealDevice()) { - socketPath = await /** @type {import('../driver').Simulator} */ (this.device).getWebInspectorSocket(); - } + const socketPath = this.isRealDevice() + ? undefined + : (await /** @type {import('../driver').Simulator} */ (this.device).getWebInspectorSocket() ?? undefined); return createRemoteDebugger( { bundleId: this.opts.bundleId, diff --git a/package.json b/package.json index da3876be6..0f3ab8b70 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,7 @@ "appium-idb": "^1.6.13", "appium-ios-device": "^2.5.4", "appium-ios-simulator": "^6.1.7", - "appium-remote-debugger": "^12.0.1", + "appium-remote-debugger": "^12.0.3", "appium-webdriveragent": "^8.9.0", "appium-xcode": "^5.1.4", "async-lock": "^1.4.0",