ios 将开发人员配置文件导入 xcode:证书变灰

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12323699/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 20:02:03  来源:igfitidea点击:

Import Developer profile into xcode: certificates greyed out

iosxcode

提问by James

I have been stuck on this for hours..I downloaded the certificate from my developer account, I also downloaded the WWDR intermediate certificate. When I click Import Developer Profile from inside xcode all of these certificates are greyed out.. Any ideas?

我已经坚持了几个小时......我从我的开发者帐户下载了证书,我还下载了 WWDR 中间证书。当我从 xcode 中单击“导入开发人员配置文件”时,所有这些证书都变灰了.. 有什么想法吗?

采纳答案by SRI

Bundle Identifier and your provisioning profile Id should match . Check that

Bundle Identifier 和您的配置文件 Id 应该匹配。检查一下

回答by Kiran Patel

You can import Developer profile into Xcode which file have a .developerprofileextension which was exported by Xcode. Xcode->Preference->Account->[SETTING ICON]->Export Accounts.

您可以将开发人员配置文件导入 Xcode,该文件具有由 Xcode 导出的.developerprofile扩展名。Xcode->Preference->Account->[SETTING ICON]->Export Accounts。

From xcode 6.x, Xcode export ipa only with distribution certificate. So you must have valid distribution certificate install in keychain.

从 xcode 6.x 开始,Xcode 仅使用分发证书导出 ipa。因此,您必须在钥匙串中安装有效的分发证书。

If you setup developer certificate and trying to export then

如果您设置了开发者证书并尝试导出,则

if distribution certificated is not created in developer portal ,then xcode will automatically create it.

如果在开发者门户中未创建分发证书,则 xcode 将自动创建它。

if distribution certificated is already created by other mac , and you have not install in your mac then Xcode will give message "Your account already has a valid iOS Distribution certificate"enter image description here

如果分发证书已由其他 mac 创建,并且您尚未在 mac 中安装,则 Xcode 将给出消息“您的帐户已经拥有有效的 iOS 分发证书”在此处输入图片说明

Then You can either install Distribution certificate by .p12 file exported by keychain from old mac OR by .developerprofile extension. exported by xcode from old mac OR Revoke Existing Certificate and create new one and install

然后,您可以通过从旧 Mac 的钥匙串导出的 .p12 文件或通过 .developerprofile 扩展名安装分发证书。由 xcode 从旧 mac 导出或撤销现有证书并创建新证书并安装

Then Remove account from xcode and add it again. Then try again to build.

然后从 xcode 中删除帐户并再次添加它。然后再次尝试构建。