ios 没有签名证书iOS分发
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/42012338/
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
No signing certificate iOS Distribution
提问by Lyra
I'm having trouble generating an IPA for OTA distribution.
我在为 OTA 分发生成 IPA 时遇到问题。
We made an app for another company. That other company added me on their Enterprise account so that I could distribute using their signing identity.
我们为另一家公司制作了一个应用程序。另一家公司将我添加到他们的企业帐户中,以便我可以使用他们的签名身份进行分发。
Creating the ipa with the command line
使用命令行创建 ipa
Using the command xcodebuild, an archive I made using xcode where I put the team as that other company's team, and a plist stating I was building for Enterprise, I get this error:
使用命令 xcodebuild,我使用 xcode 创建的存档,我将团队作为其他公司的团队,以及说明我正在为企业构建的 plist,我收到此错误:
No valid iOS Distribution signing identities belonging to team [company team id of the other company] were found.
未找到属于团队 [其他公司的公司团队 ID] 的有效 iOS 分发签名标识。
Using XCode
使用 XCode
I tried doing it with XCode as well, unchecking the "Automatically manage signing" in Xcode and selecting the other company, and then I get these errors:
我也尝试使用 XCode 执行此操作,取消选中 Xcode 中的“自动管理签名”并选择另一家公司,然后出现以下错误:
No signing certificate "iOS Distribution" found.
No "iOS Distribution" signing certificate matching team ID [other company's team ID] with a private key was found."
未找到签名证书“iOS 分发版”。
未找到与团队 ID [其他公司的团队 ID] 与私钥匹配的“iOS 分发”签名证书。”
Is there something I should download from the developer account? (I already downloaded all the certificates... I think) I can't revoke the distribution certificate they have, as it is not my company and it might create problems for them.
有什么我应该从开发者帐户下载的东西吗?(我已经下载了所有证书......我想)我无法撤销他们拥有的分发证书,因为它不是我的公司,它可能会给他们带来问题。
Thanks.
谢谢。
回答by TheFuquan
When you downloaded every certificate from the developer account, you only downloaded the public keys, what you need to do is one of two solutions that I know of:
当您从开发者帐户下载每个证书时,您只下载了公钥,您需要做的是我所知道的两种解决方案之一:
Either ask the other company to export one of the private key from one of their machine, and you can import it into your keychain, only then when you'll try to sign your app, it will look for private half of the certificate in the keychain and it will find it (hence the error you're getting, no certificate with PRIVATE KEY was found).
要么要求另一家公司从他们的一台机器上导出一个私钥,然后您就可以将其导入您的钥匙串,只有当您尝试签署您的应用程序时,它才会在钥匙串,它会找到它(因此你得到了错误,没有找到带有私钥的证书)。
Or, you'll have to create a new production Certificate using a certificate generated from your own keychain (and a provisioning that goes with it...).
或者,您必须使用从您自己的钥匙串生成的证书(以及与之配套的配置...)来创建新的生产证书。