xcode CodeSign 错误:SDK“iOS 5.1”中的产品类型“应用程序”需要代码签名

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11704827/
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-09-15 01:03:25  来源:igfitidea点击:

CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 5.1'

iphoneiosxcodecode-signing

提问by Nathan Cleary

I've recently bought a new Macbook Air, installed all my software including Xcode, I've gone to work on my project and I keep getting the Code Signing Error!

我最近买了一台新的 Macbook Air,安装了我所有的软件,包括 Xcode,我已经开始处理我的项目,但我不断收到代码签名错误!

I've download my Certs/Profiles from the iOS Dev page still nothing!

我已经从 iOS Dev 页面下载了我的证书/配置文件仍然什么都没有!

I've checked my Keychain and can't see anything wrong?

我检查了我的钥匙扣,没有发现任何问题?

Any ideas guys?

有什么想法吗?

回答by Hyman Humphries

Are you sure that your computer has the private keys associated with the certificates? Simply downloading the certificates isn't going to work. If you can't get the private keys back, then you should revoke and recreate your certificates. Then update the provisioning profiles.

您确定您的计算机具有与证书关联的私钥吗?简单地下载证书是行不通的。如果您无法取回私钥,那么您应该撤销并重新创建您的证书。然后更新配置文件。