应用程序未通过协同设计验证?
我在提交 iPhone 申请时遇到问题。我看到了一些类似的问题,但没有找到答案。
当我归档项目并单击“验证”时,收到错误消息“应用程序未通过协同设计验证。签名无效,或者未使用 Apple 提交证书进行签名。”
我假设我在协同设计部分做错了什么。我遵循了 youtube 教程,该教程让我下载所有证书并设置协同签名部分,但我认为我没有正确设置协同设计部分。
此外,当我为 iOS 构建时,我得到了这个。在我看过的所有教程中,没有人真正写出“”,因此这可能与问题有关。
我没有将 Ear Training(我的应用程序的名称)作为分发菜单下的选项。我下载了所有的分发证书,所以我不知道我做错了什么。我还尝试按照此 教程,但证书不会出现在代码签名选项下。任何帮助将不胜感激,谢谢,
这就是我在钥匙串访问中所拥有的。带有 x 的证书是我在教程中尝试创建的证书。我是否需要将它们导入到 xcode 中?我尝试拖放到项目和组织者中,但无济于事。
I'm having problems submitting my iphone application. I saw some similar questions, but I didn't find an answer.
When I archive the project and click validate, I get the error message "Application failed codesign verification. The signature was invalid, or it was not signed with an Apple submission certificate."
I'm assuming I did something wrong in the codesigning section. I followed a youtube tutorial that had me download all the certificates and set up the codesigning section, but I don't think I set up the codesign section correctly.
Additionally, when I build for iOS I get this. In all the tutorials I've seen, no one actually has "" written out, so it's possible that this is related to the problem.
I am not getting Ear Training (name of my app) as an option under the menu of distribution. I downloaded all the distribution certificates, so I can't figure out what I'm doing wrong. I also tried making my own certificate, as instructed by this tutorial, but the certificate does not appear under the code signing options. Any help would be appreciated, Thanks
this is what I have in keychain access. The certificate with the x is the one I tried creating in the tutorial. Is it possible that I need to import them to xcode? I tried dragging and dropping into the project as well as the organizer, but to no avail.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(11)
您的构建设置似乎有发布版本的开发人员证书。
为了验证和提交二进制文件,您必须将发布版本配置为使用分发证书。
创建并下载分发证书并将其导入(拖放到 Xcode)。
配置构建/发布以使用分发证书。如果您没有看到新的分发证书作为您的构建选项,请检查用于生成证书和构建设置的 AppleID。它们必须相同,否则 Xcode 无法正确签署您的应用程序。
这将解决您的问题。
Your Build settings appears to have a DEVELOPER certificate for the RELEASE version.
In order, to validate and submit a binary you've to configure the release version to use a DISTRIBUTION certificate.
Create and download a Distribution certificate and import it (drag and drop to Xcode).
Configure the build/release for using the distribution certificate. If you don't see the new distribution certificate as an option for your build, check the AppleID used both for generate the certificate and for your Build settings. They must be the same, otherwise Xcode can't sign your app correctly.
This will solve your problem.
要解决此类问题,请执行以下步骤:
To solve this type of problems, Go through following steps:
当我将二进制文件发送到 itunes connect 时,我遇到了同样的问题。
我通过使用不同的名称重命名“资源”文件夹找到了解决方案。
确保您没有在应用程序中创建或使用名为“Resources”的文件夹。
将应用程序提交到 itunes connect 时,这可能会发生冲突。
I had same problem while I send my binary to itunes connect.
I found the solution by renaming "resources" folder with some different name.
Make sure you have not created or used folder in your application with name "Resources".
This may conflict while submitting app to itunes connect.
不管你怎么说,似乎没有下载适当的分发证书。在配置门户中,单击“分发”选项卡并找到您的证书。单击相应证书右侧的下载按钮。
In spite of what you say, there does not appear to be an appropriate distribution certificate downloaded. In the Provisioning portal click on the "Distribution" tab and find your certificate. Click the download button on the right next to the appropriate certificate.
尝试先关闭您的应用程序,然后再次打开它...如果仍然看不到您的发行版,
请尝试查看“(不进行代码签名)”行中是否有可能的选项(
如果仍然没有) 如果您的包 ID 正确,您可以重复您遵循的教程
尝试查看 info.plist。 com.(公司名称).(应用程序名称)
如果你得到
您可以查看此链接 和这个 链接
Try to close your app first then open it again... if it still can't see your distribution
try to see if there are possible options in the (Don't Code Sign) rows
if still no options you can repeat the tutorial that you followed
try to see the info.plist if your bundle id is correct. com.(company name).(appname)
if you get
you can view this Link and this Link
您不仅需要有效的分发证书,还需要与该证书匹配并且适合您的应用程序的捆绑包 ID 的分发配置文件。
You need not only a valid Distribution certificate, but a distribution provision file that matches that certificate and is appropriate for your app's Bundle ID.
首先,您必须在 iOS 配置门户。要创建您的应用程序 ID,请确保使用您在项目中使用的相同捆绑包标识符。
其次,您必须在“配置”部分和“分发”选项卡中创建分发配置文件。此配置文件会将您的应用程序 ID 与您的分发证书链接起来。请务必选择“App Store”分发方式,以及最近创建的App ID。下载分发配置文件并双击进行安装(您也可以使用“设备”选项卡中的管理器手动添加)。
现在您可以在项目中设置协同设计部分。选择您刚刚为发布和分发方法创建的配置文件,存档然后验证。
有关更多信息,您可以阅读 iOS 配置门户 中的操作方法
First of all you have to create a new App ID in in the iOS Provisioning Portal. To create your App ID be sure to use the same Bundle Identifier that you are using in your project.
Second you have to create a Distribution Provisioning Profile in the "Provisioning" section and "Distribution" tab. This profile will link your App ID with your Distribution Certificate. Be sure to select "App Store" Distribution Method, and the App ID reciently created. Download the Distribution Profile and double-click to install (you can also add it manually with the Organizer in the "Devices" tab).
Now you are able to setup the codesign section in your project. Select the profile you have just created for release and distribution methods, archive and then validate.
For further information you can read the How to's in the iOS Provisioning Portal
当我将 .app.dSYM 文件与我的 .app 文件一起压缩,然后使用应用程序加载器将其上传到 iTunes 时,错误就消失了。
The error went away for me when I compressed the .app.dSYM file together with my .app file before uploading it to iTunes with the application loader.
我花了9个小时解决这个问题...
事实证明,如果您的项目位于另一台服务器上,Xcode 也会给出“应用程序失败的协同设计验证”错误。
I spent 9 hours solving this problem...
turned out that Xcode also gives the "Application failed codesign verification" error if your project is located on another server.
检查目标(而不仅仅是项目)是否设置了正确的代码签名身份以进行发布
Check that the TARGET (and not only the Project) is setup with the correct Code Signing Identity for Release
这通常对于解决 CodeSign 问题非常有帮助。非常详细的故障排除指南。
https://developer.apple.com/legacy/library/technotes/tn2250/_index.html#//apple_ref/doc/uid/DTS40009933-CH1-TNTAG31
This is generally very helpful with figuring out CodeSign problems. A very detailed troubleshooting guide.
https://developer.apple.com/legacy/library/technotes/tn2250/_index.html#//apple_ref/doc/uid/DTS40009933-CH1-TNTAG31