代码签名错误

发布于 2025-01-05 20:35:52 字数 286 浏览 1 评论 0原文

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

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

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

谢谢

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

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

Thank you

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

青衫儰鉨ミ守葔 2025-01-12 20:35:52

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

  1. 登录并下载开发人员证书。如果您需要创建一个,请从“配置门户”证书下的菜单中选择操作方法
  2. 下载分发证书。同样,如果您需要,请选择操作方法
  3. 打开这两个证书并确保它们在您的钥匙串访问中打开。
  4. 选择配置并下载开发人员和发行版 .mobileprovision 配置文件。如有必要,请使用操作方法创建一个
  5. 确保您已打开 XCode 并打开两个 .mobileprovisioning 配置文件。确保它们在管理器中打开并显示它们已与钥匙串访问中有效的证书正确链接的状态。 如果不是,则会弹出一个标志,以亮红色显示“没有与此配置文件关联的有效证书”。
  6. 检查目标和项目区域。绝对确保双方都尝试使用您的分发配置文件进行签名。
  7. 确保您正在构建应用的分发方案(您可能必须创建此方案)。
  8. 最后将构建设备设置为iOS Device,将scheme设置为Distribution,并选择Archive。 当程序要求您允许代码签名使用您的私钥时,您必须选择“允许”而不是“始终允许”,因为这是非常错误的,并且经常会导致代码签名错误。< /strong>

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

希望这有帮助!

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. 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.

Hope this helps!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文