JIE WANG
JIE WANG

Reputation: 1934

How can I enable the Keychain Sharing capability in Xcode?

I would like to share keychain between my app and my app extension,

From the doc, it says

To add this entitlement to your app, enable the Keychain Sharing capability in Xcode.

but I didn't find anything related to Keychain Sharing capability.

Anyone knows how to enable it?

Upvotes: 6

Views: 3901

Answers (2)

Ziv Adler
Ziv Adler

Reputation: 177

https://i.sstatic.net/DH1zi.jpg

You can find the keychain sharing capability In the project settings... Signing and capabilities... Hit the + icon near capability at the top left corner... Select the keychain sharing

Take a look at the screenshot I provided.

Ziv.

Upvotes: 5

MobileMon
MobileMon

Reputation: 8651

Click the signing & capabilities button. Then click the + (plus) button. From there, add keychain sharing capability

You will also need to set up which apps will share data from the apple developer portal

enter image description here

Upvotes: 7

Related Questions