简体   繁体   English

Xcode 中的代码签名错误

[英]Code Signing error in Xcode

I've looked through all other topics on this issue, and I can't still solve my problem.我已经浏览了有关此问题的所有其他主题,但我仍然无法解决我的问题。 I did a clean install of OS X today, and now when I try to run on my iOS device I get an error stating: Check dependencies我今天完成了 OS X 的全新安装,现在当我尝试在我的 iOS 设备上运行时,我收到一条错误消息:检查依赖项

[BEROR]Code Sign error: The identity 'iPhone Developer' doesn't match any valid certificate/private key pair in the default keychain [BEROR]代码签名错误:身份“iPhone Developer”与默认钥匙串中的任何有效证书/私钥对不匹配

I don't know how to solve this, I have tried going through my Code Signing identities and saying to 'Don't sign code', but it still isn't working.我不知道如何解决这个问题,我尝试通过我的代码签名身份并说“不要签署代码”,但它仍然无法正常工作。

I've deleted my phone from my provisioning profile, and then re-added it.我已经从我的配置文件中删除了我的手机,然后重新添加了它。 I've deleted my certificate and also re-added It still isn't working.我已经删除了我的证书并重新添加了它仍然无法正常工作。 I began this Xcode project before I did a clean install and this is the origination of the problem.在我进行全新安装之前,我开始了这个 Xcode 项目,这就是问题的根源。

Any help is much appreciated, thanks非常感谢任何帮助,谢谢

Did you set the same provisioning profile in your target settings?您是否在目标设置中设置了相同的配置文件?

You need to create a new provisioning profile with your new CSR.

OR或者

Go to project settings Search for all "CODE_SIGN_IDENTITY[sdk=iphonesos*]" and set it to "CODE_SIGN_IDENTITY[sdk=iphonesos*]" = "iPhone Developer"; Go 到项目设置搜索所有“CODE_SIGN_IDENTITY[sdk=iphonesos*]”并将其设置为“CODE_SIGN_IDENTITY[sdk=iphonesos*]”=“iPhone Developer”; Searach for "PROVISIONING_PROFILE[sdk=iphonesos*]" and set it to "PROVISIONING_PROFILE[sdk=iphonesos*]" = "";搜索“PROVISIONING_PROFILE[sdk=iphonesos*]”并将其设置为“PROVISIONING_PROFILE[sdk=iphonesos*]”=“”; Now Save the file现在保存文件

OR then the main problem with your key chain:或者然后是您的钥匙链的主要问题:

At last if both of the answer above could not solve the issue then check open your keychain access and check whether you do not have two "iPhone Distribution" certificates in my keychain, delete one of them if you have any duplicate.最后,如果上述两个答案都无法解决问题,请检查打开您的钥匙串访问权限并检查我的钥匙串中是否没有两个“iPhone Distribution”证书,如果您有任何重复,请删除其中一个。

Go to your apple provisioning portal and create a new provisioning profile with new csr. Go 到您的苹果配置门户并使用新的 csr 创建一个新的配置文件。 and after that clean all the targets and build fresh binary with your provisioning profile.然后清理所有目标并使用您的配置文件构建新的二进制文件。 some time quit the xcode solve the issue一段时间退出 xcode 解决问题

build setting->code signing identity->debug->your team provisioning profile构建设置->代码签名身份->调试->您的团队配置文件

select perticular team provisioning and try again select 特定团队配置并重试

i think this question from stack overflow would help you...我认为堆栈溢出的这个问题会帮助你......

Code Sign error: The identity 'iPhone Developer' doesn't match any valid certificate/private key pair in the default keychain 代码签名错误:身份“iPhone 开发人员”与默认钥匙串中的任何有效证书/私钥对不匹配

if you are testing it in simulator just right click on your app name and select Get Info如果您在模拟器中对其进行测试,只需右键单击您的应用名称和 select 获取信息
then select Base SDK info to Latest Ios and then close it,然后 select Base SDK 信息到最新的 Ios 然后关闭它,
then click on your app name near active target,然后在活动目标附近单击您的应用名称,
then select simulator and build it........然后 select 模拟器并构建它......

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM