Sierra 更新后无法为 iOS 10 编译 [英] Unable to compile for iOS 10 after Sierra Update
问题描述
我有证书 &今年八月生成的配置文件.它们在 Apple Developer Portal 中均有效(未过期).
I have a certificate & provisioning profile generated this August. They are both valid (unexpired) in the Apple Developer Portal.
当我打开面向 8.3 的项目时,出现此错误:
When I open my project, which targets 8.3, I get this error:
No certificate matching 'iPhone Developer: My Name (###ABC123)' for team 'Company.'
Select a different signing certificate for CODE_SIGN_IDENTITY, a team that matches your selected certificate, or switch to automatic provisioning.
- 我可以在钥匙串中看到我的证书下嵌套的私钥.
- 在我的项目设置中,我点击我的目标并查看我的配置轮廓.
- 在签名证书下,我看到无.
起初我看到此配置文件没有无线附件配置"的错误,这是我不需要的.当我取消选择 &重新选择了配置文件,此错误消失了.
At first I saw an error for "This provisioning profile does not have Wireless Accessory Configuration", which I don't need. When I unselected & reselected the provisioning profile, this error went away.
推荐答案
我遇到过很多类似的问题,开发者门户显示有效的证书/配置文件,而 Xcode 拒绝签名.
I've had many similar issues, where the developer portal displayed valid certificates/profiles, and Xcode refused to sign.
我每次遇到它时,终于找到了似乎有用的东西:
Finally found something that seems to do the trick every time I come across it:
• 打开 Certificates, Identifiers &在线开发者门户网站上的个人资料
页面
• 转到Provisioning Profiles ->全部
标签
• 选择您要为其构建的配置文件,然后点击Edit
• 选择您机器上的证书,然后单击生成"
• 下载配置文件并将其拖入 Dock 中的 Xcode 图标
• 清理并重建您的项目
• Open the Certificates, Identifiers & Profiles
page on the online developer portal
• Go to the Provisioning Profiles -> All
tab
• Select the profile you are trying to build for and click on Edit
• Select the certificate you have on your machine, and click 'Generate'
• Download the profile and drag in onto the Xcode icon in your dock
• Clean and rebuild your project
我不知道这是否是最佳解决方案,或者恰好适用于我的情况……但值得一试.
I don't know if this is the golden fix, or just happens to work in my situation... but worth giving this a shot for sure.
这篇关于Sierra 更新后无法为 iOS 10 编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!