问题描述
我有证书&今年8月产生的配置文件。它们在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.
- 我可以在Keychain的证书下看到私钥嵌套。
- 在我的项目设置中,我点击我的目标并查看我的配置
配置文件。 - 在签名证书下,我看到无。
起初我看到此配置文件没有无线配件配置,我不需要。当我取消选中&重新选择了配置文件,这个错误就消失了。
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.
推荐答案
我有很多类似的问题,开发人员门户网站显示有效的证书/ profile,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:
•打开证书,标识符&在线开发者门户网站上的个人资料
页面
•转到配置文件 - >所有
标签
•选择您要为其构建的个人资料,然后点击编辑
•选择您计算机上的证书,然后单击生成
•下载配置文件并拖入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 Update之后无法为iOS 10编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!