iOS 5.1 和 Xcode 4.3.1 CodeSign 错误

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

iOS 5.1 and Xcode 4.3.1 CodeSign Error

xcodeios5.1

提问by Non Umemoto

I just downloaded the iOS 5.1 and the Xcode 4.3.1. But when I'm going to test in my device, the Xcode give me the error:

我刚刚下载了 iOS 5.1 和 Xcode 4.3.1。但是当我要在我的设备上进行测试时,Xcode 给了我错误:

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

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

Any idea how to fix it?

知道如何修复它吗?

回答by Non Umemoto

Try assigning your provision code in every fields like the below picture. I had same issue after upgrading to the iOS 5.1 and the Xcode 4.3.1, but it started working fine after I tried this.

尝试在每个字段中分配您的供应代码,如下图所示。升级到 iOS 5.1 和 Xcode 4.3.1 后我遇到了同样的问题,但在我尝试之后它开始工作正常。

assign all provisions like this just once. (or try changing "any SDK" to "iOS5.1" enter image description here

像这样分配所有的规定一次。(或尝试将“任何 SDK”更改为“iOS5.1” 在此处输入图片说明

Previously, I was doing like this. enter image description here

以前,我就是这样做的。 在此处输入图片说明

回答by Wadday

You should revoke your certificate and make a new certificate request from Keychain access. make new certificate and install it. you don't really need to create new provision profile the existing one modify and select the certificate newly created but you must download updated provision profile and install to xcode.

您应该撤销您的证书并从钥匙串访问中提出新的证书请求。制作新证书并安装。您实际上并不需要创建新的配置文件,修改现有的配置文件并选择新创建的证书,但您必须下载更新的配置文件并安装到 xcode。

everything works perfectly for me. hope this could hlep.

一切对我来说都很完美。希望这可以帮助。