应用程序未通过协同设计验证?

发布于 2024-12-27 14:46:00 字数 942 浏览 0 评论 0原文

我在提交 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.

enter image description here

enter image description here

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.

enter image description here

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.

enter image description here

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

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

发布评论

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

评论(11

氛圍 2025-01-03 14:46:00

您的构建设置似乎有发布版本的开发人员证书。

为了验证和提交二进制文件,您必须将发布版本配置为使用分发证书。

创建并下载分发证书并将其导入(拖放到 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.

原谅过去的我 2025-01-03 14:46:00

要解决此类问题,请执行以下步骤:

  1. 下载所需的配置文件(debug、ad_hoc、app_store)
  2. 转到目标(单击应用程序名称 --> 目标)
  3. 单击信息选项卡(摘要旁边)
  4. 更改捆绑包标识符正如您在配置文件中给出的那样,
  5. 单击构建设置,
  6. 转到代码签名部分,
  7. 现在在每行中选择正确的配置文件(代码签名身份、调试等)(对于应用程序商店必须选择 app_store 配置文件)
  8. 设置“是”到“构建选项”部分中的“发行版”
  9. 单击“项目部分”下的项目名称,
  10. 重复步骤 6,7 和 8
  11. 转到“编辑方案”(单击停止按钮旁边的项目名称 --> 编辑方案)
  12. 更改 构建配置以进行分发(仅适用于 app_store 和 ad_hoc 配置文件)
  13. 为 ios 设备进行构建,然后验证或分发

To solve this type of problems, Go through following steps:

  1. Download required provisioning profiles(debug,ad_hoc,app_store)
  2. Go to target (click on application name --> target)
  3. click on info tab (next to summary )
  4. change the Bundle identifier as you given in provisioning profile
  5. click on build settings
  6. go to code signing section
  7. now select correct provisioning profile in each row(code signing identity,debug,... etc.)(for app-store must select app_store provisioning profile )
  8. set "yes to distribution" in "build options" section
  9. click on project name under "project section "
  10. repeat step 6,7 and 8
  11. go to "edit scheme" (click on project name next to stop button --> edit scheme)
  12. change build configuration to distribution(only for app_store and ad_hoc profiles)
  13. make a build for ios device and then validate or distribute
情何以堪。 2025-01-03 14:46:00

当我将二进制文件发送到 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.

苏大泽ㄣ 2025-01-03 14:46:00

不管你怎么说,似乎没有下载适当的分发证书。在配置门户中,单击“分发”选项卡并找到您的证书。单击相应证书右侧的下载按钮。

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.

伤感在游骋 2025-01-03 14:46:00

尝试先关闭您的应用程序,然后再次打开它...如果仍然看不到您的发行版,

请尝试查看“(不进行代码签名)”行中是否有可能的选项(

如果仍然没有) 如果您的包 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

Code sign errors

you can view this Link and this Link

拥有 2025-01-03 14:46:00

您不仅需要有效的分发证书,还需要与该证书匹配并且适合您的应用程序的捆绑包 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.

暖伴 2025-01-03 14:46:00

首先,您必须在 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

孤蝉 2025-01-03 14:46:00

当我将 .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.

失去的东西太少 2025-01-03 14:46:00

我花了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.

梦纸 2025-01-03 14:46:00

检查目标(而不仅仅是项目)是否设置了正确的代码签名身份以进行发布

Check that the TARGET (and not only the Project) is setup with the correct Code Signing Identity for Release

暗藏城府 2025-01-03 14:46:00

这通常对于解决 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

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