From the course: Advanced iOS Development: Keychain Access

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Sharing keychain data

Sharing keychain data - iOS Tutorial

From the course: Advanced iOS Development: Keychain Access

Start my 1-month free trial

Sharing keychain data

- [Instructor] So let's review again where we are. We created the bear account with the first app and the test1 account with the second app. In the database, we can see that the access groups are separate as well, we have SecureStuff, that's for the bear account, and SecureStuff2 for the test1 account. And so the two apps don't have access to each other's accounts, so let's see how we can share some data. So I'm going to step over the next two lines so that it actually deletes that account from the database and let's verify that. I'll refresh the database and we're back to just one account, it's the bear account from the first app. So now I'm going to stop execution and I'm going to add the second app to an access group. So under the Signing & Capabilities tab, if I didn't already have the keychain sharing here, you can just click the Capability plus sign, type keychain, and add keychain sharing. So I'm going to add a…

Contents