diff --git a/lib/simulator-xcode-9.js b/lib/simulator-xcode-9.js index 038fea4..b3578b1 100644 --- a/lib/simulator-xcode-9.js +++ b/lib/simulator-xcode-9.js @@ -19,6 +19,10 @@ const startupLock = new AsyncLock(); const preferencesPlistGuard = new AsyncLock(); const ENROLLMENT_NOTIFICATION_RECEIVER = 'com.apple.BiometricKit.enrollmentChanged'; const DOMAIN_KEYBOARD_PREFERENCES = 'com.apple.keyboard.preferences'; +// com.apple.SpringBoard: translates com.apple.SpringBoard and system prompts for push notification +// com.apple.locationd: translates system prompts for location +// com.apple.tccd: translates system prompts for camera, microphone, contact, photos and app tracking transparency +const SERVICES_FOR_TRANSLATION = ['com.apple.SpringBoard', 'com.apple.locationd', 'com.apple.tccd']; /** * Creates device and common Simulator preferences, which could @@ -579,13 +583,9 @@ class SimulatorXcode9 extends SimulatorXcode8 { } if (globalPrefs.AppleLanguages) { - // 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 - ])) - ); + await B.all(SERVICES_FOR_TRANSLATION.map((arg) => this.simctl.spawnProcess([ + 'launchctl', 'stop', arg + ]))); } return true;