From edde6368d540bb3df8611be38a1099c7ea2a8dea Mon Sep 17 00:00:00 2001 From: mwakizaka <21286384+mwakizaka@users.noreply.github.com> Date: Sun, 24 Sep 2023 01:15:16 +0900 Subject: [PATCH] fix: appropriately translate com.apple.SpringBoard and system prompts (#384) ref: https://github.com/appium/appium/issues/19181 --- lib/simulator-xcode-9.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/simulator-xcode-9.js b/lib/simulator-xcode-9.js index 26089fd..426b29c 100644 --- a/lib/simulator-xcode-9.js +++ b/lib/simulator-xcode-9.js @@ -578,6 +578,11 @@ class SimulatorXcode9 extends SimulatorXcode8 { ]))); } + // In order to translate com.apple.SpringBoard, system prompts for push notification and system prompts for location + await B.all(['com.apple.SpringBoard', 'com.apple.locationd'].map((arg) => this.simctl.spawnProcess([ + 'launchctl', 'stop', arg + ]))); + return true; } }