验证 iOS 应用程序构建时出现问题
我正在与开发人员合作,为客户创建 iOS 应用程序。我创建了证书、配置文件等,然后将其发送给开发人员来构建应用程序。然后他们将构建版本作为 .xarchive 文件发回给我,我已将其加载到 Xcode 中。
然后,我在“档案”选项卡上对其进行验证,但我在 iTunes connect 中创建的开发者证书无效。
我在同一个 iTunes Connect 中创建了我的开发人员和发行签名帐户,它们都与我的 WWDR 证书一起加载到钥匙串中。
I'm working with a developer to create an iOS App for a client. I created my certificates, provisioning profiles, etc, and then sent it to the developer to build the App. They have then sent me back the build as an .xarchive file, which I have loaded up into Xcode.
On the Archives tab, I then go to validate it, but the developer certificate I created in iTunes connect is invalid.
I created both my developer and distribution signature inside the same iTunes Connect account, and they're both loaded up in Keychain along with my WWDR certificate.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
确保您也下载了配置文件并将其拖至 XCode。
Make sure you downloaded and dragged your provisioning files to XCode as well.
使用分发证书生成构建时,您需要确保在 iOS 配置门户中拥有正确生成的分发证书。选择证书->分发选项卡并确保您列出了分发证书。如果有,并且您的计算机上没有原始私钥,则需要从原始计算机获取私钥/公钥对,或者吊销并重新创建证书。
另外,请确保您已创建分发配置文件并且它与此分发结合使用证书。
另外,请检查以确保您拥有适用于应用程序商店的应用程序的分发配置文件。
其他问题包括应用程序 ID 与捆绑包标识符不同,并且无法将其与配置文件关联。最常见的情况是,捆绑包标识符是从 ProductName 派生的,并且字符的大小写与配置门户上的应用程序 ID 中的字符大小写不匹配。
您可以通过在 AppName-info.plist 文件中输入捆绑包标识符来解决此问题。
When producing a build using a Distribution Certificate you need to make sure that you have a properly generated Distribution Certificate in the iOS Provisioning Portal. Select the Certificates -> Distribution tab and make sure you have a distribution certificate listed. If there is one and you do not have the original private key on your machine, you will need to obtain the private/public key pair from the original machine, or revoke and recreate the certificate.
Also, make sure you have created a Distribution provisioning profile and that it is being used in conjunction with this Distribution Certificate.
Also, check to be sure you have a distribution provisioning profile for your app for app store.
Other problems include the App ID differing from the Bundle Identifier and it has trouble associating it with the provisioning profile. Most commonly when the Bundle Identifier is derived from the ProductName and the case of the characters doesn't match the case of the characters in the App ID on the provisioning portal.
You can get around this by typing in the bundle identifier into the AppName-info.plist file.
我终于解决了!我拥有正确的证书,但只创建了一个开发配置文件。我在 iTunes Connect 中创建了这个,然后它运行得非常好。希望这可以帮助其他有类似问题的人。
确保您拥有我需要的一切的最简单方法是记住您需要单独的证书和配置文件来进行开发和分发。它们都可以在 iTunes Connect 中创建,您只需下载它们并运行文件以确保 Xcode 找到它们。
I finally worked it out! I had the right certificates, but had only created a development provisioning profile. I created this in iTunes Connect and then it worked perfectly. Hope this helps someone else who has a similar problem.
Easiest way to ensure you have everything I needed is to remember that you need separate certificates and provisioning profiles for development and distribution. They can all be created in iTunes Connect, and you just need to download them and run the file to ensure Xcode finds them.