Xcode 5.1 + iOS 7.1 上的代码签名损坏
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/22405035/
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
Code signing broken on Xcode 5.1 + iOS 7.1
提问by Adam
Seems Apple has broken provisioning profiles in Xcode 5.1 ??
似乎 Apple 在 Xcode 5.1 中破坏了配置文件??
- Upgraded to Xcode 5.1
- Plugged in a device that wasn't registered on Dev Center
- Asked Xcode to auto-add it
- 升级到 Xcode 5.1
- 插入未在开发中心注册的设备
- 要求 Xcode 自动添加它
Result:
结果:
- Developer Provisioning Profile is now corrupt in Xcode5
- Xcode5 中的开发人员配置文件现已损坏
The following had no effect:
以下没有影响:
- Restarting Xcode
- Deleting profile and re-downloading within Xcode
- Check that certificate is valid
- Re-building with other profiles for same account/project (i.e. Distribution profiles) that had NOT been changed (works fine)
- 重启Xcode
- 在 Xcode 中删除配置文件并重新下载
- 检查证书是否有效
- 使用未更改的相同帐户/项目的其他配置文件(即分发配置文件)重新构建(工作正常)
NOTE: in iPhone Configuration Utility, the profiles shows up as valid with all the registered devices. In Xcode5.1 I get:
注意:在 iPhone 配置实用程序中,配置文件显示为对所有注册的设备有效。在 Xcode5.1 我得到:
Code Sign error: No codesigning identities found: No codesigning identities (i.e. certificate and private key pairs) that match the provisioning profile specified in your build settings (“iOS Team Provisioning Profile: com.irisconnect.betairisconnect”) were found.
代码签名错误:未找到代码签名标识:未找到与构建设置中指定的配置文件(“iOS 团队配置文件:com.irisconnect.betairisconnect”)匹配的代码签名标识(即证书和私钥对)。
回答by Adam
Solution: it's Xcode 5.1 that is broken, with a major bug.
解决方案:Xcode 5.1 坏了,有一个主要错误。
If you allow Xcode5 to download provisioning profiles, it now internally corrupts any Developer profiles it downloaded.
如果您允许 Xcode5 下载配置文件,它现在会在内部损坏它下载的任何开发人员配置文件。
If you instead:
如果你改为:
- quit Xcode
- login to web version of Dev Center
- manually download the profile
- install using iPhone Configuration Utility
- Re-start Xcode
- 退出 Xcode
- 登录网页版开发中心
- 手动下载配置文件
- 使用 iPhone 配置实用程序安装
- 重新启动Xcode
...everything works fine.
...一切正常。
Note: if you everdo the download within Xcode 5.1, then no amount of restarts will help you :(.
注意:如果您曾经在 Xcode 5.1 中进行过下载,那么再多的重启也无济于事:(。
Thanks, Apple.
谢谢,苹果。
回答by dave adelson
i had the same problem and was tearing my hair out. thanks to the answer above, i went and looked in keychain access and saw that my previous iPhone Developer certificates were listed as expired. so, i deleted these in keychain access.
我有同样的问题,正在撕掉我的头发。多亏了上面的答案,我去查看钥匙串访问,看到我以前的 iPhone 开发人员证书被列为已过期。所以,我在钥匙串访问中删除了这些。
then:
然后:
1) i went to the apple developer portal (https://developer.apple.com/account/ios/certificate/certificateList.action?type=development), clicked on the development certificate, and clicked download.
2) i dragged that certificate into keychain access (it's a login cert).
3) i went back to xcode, to the build settings code signing section of the project.
4) by hand, i set the provisioning profiles to my team provisioning profile.
5) i went up into the code signing identity section and by hand selected the new code signing identity.
1)我去苹果开发者门户(https://developer.apple.com/account/ios/certificate/certificateList.action?type=development),点击开发证书,点击下载。
2)我将该证书拖到钥匙串访问中(这是一个登录证书)。
3)我回到xcode,回到项目的构建设置代码签名部分。
4) 手动,我将配置文件设置为我的团队配置文件。
5)我进入代码签名身份部分并手动选择了新的代码签名身份。
and voila, it worked...my project built. btw, i went through all that because i had made the fatal error the prior answer indicated, i.e. i had let xcode download a new certificate and then let it try to fix the code signing issue, and got caught in 1 infinite loop...just kept failing...
瞧,它奏效了……我的项目建立了。顺便说一句,我经历了所有这些,因为我犯了先前答案指出的致命错误,即我让 xcode 下载了一个新证书,然后让它尝试修复代码签名问题,并陷入了 1 个无限循环......一直失败...
hope this helps
希望这可以帮助
回答by arttioz
I got the same problem.
我遇到了同样的问题。
Here is my solution
这是我的解决方案
- Download Provision from https://developer.apple.com/account/ios/profile/profileList.action?type=production
- You will get the file name "mobileprovision", change it to "YourAppName.mobileprovision"
- Now Click open it with xCode
- Archive and Submit your application again by Organizer
- 从https://developer.apple.com/account/ios/profile/profileList.action?type=production下载 Provision
- 您将获得文件名“mobileprovision”,将其更改为“YourAppName.mobileprovision”
- 现在点击用 xCode 打开它
- 主办方再次归档并提交您的申请
回答by dev4life
Here's what worked for me on Xcode 6, iOS 8.
这是在 Xcode 6、iOS 8 上对我有用的方法。
- Visit https://developer.apple.com/account/ios/profile/profileList.action?type=production
- Revoked all certificates
- Closed/restarted XCode.
- Attempted to Build/Run again.
- 访问https://developer.apple.com/account/ios/profile/profileList.action?type=production
- 吊销所有证书
- 关闭/重新启动 XCode。
- 再次尝试构建/运行。
This time the Auto Fix process in XCode worked.
这一次 XCode 中的自动修复过程起作用了。