diff --git a/lib/extensions/settings.js b/lib/extensions/settings.js index a9296e65..2088deda 100644 --- a/lib/extensions/settings.js +++ b/lib/extensions/settings.js @@ -10,7 +10,8 @@ import { fs } from '@appium/support'; // 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']; +// com.apple.akd: translates `Sign in with your Apple ID` system prompt +const SERVICES_FOR_TRANSLATION = ['com.apple.SpringBoard', 'com.apple.locationd', 'com.apple.tccd', 'com.apple.akd']; const GLOBAL_PREFS_PLIST = '.GlobalPreferences.plist'; const PREFERENCES_PLIST_GUARD = new AsyncLock(); const DOMAIN = /** @type {const} */ Object.freeze({ diff --git a/test/unit/simulator-specs.js b/test/unit/simulator-specs.js index d48a71ba..68a9a6dd 100644 --- a/test/unit/simulator-specs.js +++ b/test/unit/simulator-specs.js @@ -209,7 +209,10 @@ launchd_s 35621 mwakizaka 16u unix 0x7b7dbedd6d62e84f 0t0 /private/ spawnProcessSpy.getCall(3).args[0].should.eql( ['launchctl', 'stop', 'com.apple.tccd'] ); - spawnProcessSpy.callCount.should.eql(4); + spawnProcessSpy.getCall(4).args[0].should.eql( + ['launchctl', 'stop', 'com.apple.akd'] + ); + spawnProcessSpy.callCount.should.eql(5); }); it('should confirm skip restarting services if already applied', async function () {