代码签名错误 [英] Code Signing Error

查看:26
本文介绍了代码签名错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的公司有一个基础应用程序,他们重新设计并出售给不同的企业.我重新设计了该应用程序并尝试将其上传到他们的帐户,但我收到了:

The company I am working for has a base app that they reskin and sell to different businesses. I have redesigned the app and am trying to upload it to their account but am getting:

[BEROR]Code Sign error: The identity 'iPhone Distribution' doesn't match any
valid certificate/private key pair in the default keychain

如何将他们的开发者帐户添加到我的 Xcode 中并获得分发证书?

How do I add their developer account into my Xcode and acquire a certificate for distribution?

谢谢

推荐答案

基本上,您需要在 Provisioning Portal 中拥有最大权限才能执行以下操作,因此如果没有,请获取,然后执行此操作:

Basically, you need to have maximum privileges in the Provisioning Portal to do the following, so if you don't, get it, and then do this:

  1. 登录并下载开发者证书.如果您需要创建一个,请从 Provisioning Portal 中证书下的菜单中选择操作方法.
  2. 下载分发证书.同样,如果您需要,请选择操作方法.
  3. 打开两个证书并确保它们在您的钥匙串访问
  4. 选择配置并下载开发者和分发版 .mobileprovision 配置文件.如有必要,请使用操作方法
  5. 创建一个
  6. 确保您已打开 XCode 并打开两个 .mobileprovisioning 配置文件.确保它们在管理器中打开并显示它们与钥匙串访问中有效的证书正确链接的状态.如果不是,则会弹出一个标志,用鲜红色显示没有与此配置文件关联的有效证书"之类的内容.
  7. 在构建的目标项目区域检查您的代码签名.确保双方都尝试使用您的分发资料进行签名.
  8. 确保您正在构建应用的分发方案(您可能需要创建此方案).
  9. 最后将构建设备设置为iOS Device,将scheme设置为Distribution,然后选择Archive.当程序要求您允许代码签名使用您的私钥时,您必须选择允许"而不是始终允许",因为这非常有问题并且经常导致代码签名错误.
  1. Login and download a developer certificate. If you need to create one, select How To from the menu in the Provisioning Portal under certificates.
  2. Download a distribution certificate. Again, if you need one, select How To.
  3. Open both certificates and make sure they open in your Keychain Access
  4. Select provisioning and download both a developer and distribution .mobileprovision provisioning profile. Create one if necessary using How To
  5. Make sure you have XCode open and open both .mobileprovisioning profiles. Make sure that they open in the Organizer and show in the status that they are properly linked with a certificate that is valid in the Keychain Access. If they aren't, a flag will pop up, saying something like "There is no valid certificate associated with this profile" in bright red.
  6. Check your code signing in both the Target and Project areas of your build. Make absolutely sure that both are trying to sign using your distribution profile.
  7. Make sure that you are building the distribution scheme of your app (You may have to create this).
  8. Finally set the build device to iOS Device, set the scheme to Distribution, and select Archive. It is imperative that when the program asks you to allow the code signing to use your private key, that you select "Allow" and not "Always Allow," as this is very buggy and often results in code signing errors.

如果您需要更多帮助,请发表评论.

If you need any more help, comment.

希望这有帮助!

这篇关于代码签名错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆