code签名错误 [英] Code Signing Error

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

问题描述

该公司我工作的有一个基础的应用程序,他们reskin并出售给不同的企业。我重新设计了应用程序,我试图把它上传到自己的帐户,但我得到:

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

我如何添加自己的开发者账户到我的X code和获得分配的证书?

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

感谢您

推荐答案

基本上,你需要在资源调配门户最高权限做到以下几点,所以如果你不这样做,得到它,然后再做到这一点:

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户菜单。

  2. 下载发布证书即可。同样,如果你需要一个,选择如何

  3. 开启两个证书,并确保他们打开您的钥匙串访问

  4. 选择配置和下载两个开发商和分销供应名为.mobileprovision轮廓。如果需要使用创建一个如何

  5. 确保您有X code打开并打开两个.mobileprovisioning配置文件。确保他们在管理器打开并显示在他们适当与有效在钥匙串访问证书链接的状态。的如果不是,一个标志,会弹出,说什么没有与此相关的配置文件没有有效证书,在鲜红色。

  6. 检查code在签署双方的目标项目构建区域。务必确保两者都尝试使用您的分布图签署。

  7. 请确保您正在构建的分配的计划您的应用程序(可能需要创建此)。

  8. 最后设置生成设备的iOS设备,该方案设置为分布,并选择存档。 当务之急是,当程序要求您让code签名使用私钥,您选择允许,而不是总是允许,因为这是非常错误而且通常会导致code签署的错误。

  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.

希望这有助于!

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

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