John Doe
John Doe

Reputation: 189

Avoid other apps using the same framework to access the keychain data in iOS

I have a framework which stores data in Keychain. Is there a way what can I do to prevent access to that data from other apps in a device which has more apps using the same framework? And can they access it? I googled a lot but could not find a good answer to this question.

Thanks in advance!

Upvotes: 3

Views: 1341

Answers (1)

Rob Napier
Rob Napier

Reputation: 299265

That's the default situation. Each app has its own access group by default, and things put into Keychain are limited to that access group. The framework isn't relevant, only the app ID (and by extension the access group or groups).

For more on access groups, see Sharing Access to Keychain Items Among a Collection of Apps for how apps (from the same development team) can share Keychain items. But the default is that they don't.

Upvotes: 6

Related Questions