Daily iOS
Persistence

Keychain access groups

Two payment apps from the same team, the main app and a merchant app, have to share one login token. UserDefaults and files are out, so on what conditions and how do you share it through the Keychain?

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

Apps sit in separate sandboxes, so they can't see each other's UserDefaults or files. The Keychain shares items between apps signed with the same Team ID when the Keychain Sharing entitlement lists the same access group.

Share a question