简体   繁体   English

如何在 Xcode 中启用钥匙串共享功能?

[英]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.要将此权利添加到您的应用程序,请在 Xcode 中启用钥匙串共享功能。

but I didn't find anything related to Keychain Sharing capability .但我没有找到任何与钥匙串共享功能相关的东西。

Anyone knows how to enable it?任何人都知道如何启用它?

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您还需要设置哪些应用程序将共享来自苹果开发者门户的数据

在此处输入图像描述

https://i.stack.imgur.com/DH1zi.jpg https://i.stack.imgur.com/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您可以在项目设置中找到钥匙串共享功能...签名和功能...点击左上角功能附近的+图标... Select 钥匙串共享

Take a look at the screenshot I provided.看看我提供的截图。

Ziv.齐夫。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM