XCode 4,签名无效 (-19011)

发布于 2024-11-17 07:15:19 字数 1059 浏览 1 评论 0原文

我要疯了。

我正在使用 XCode 4,最后我完成了我的应用程序,我正准备将其提交到 App Store,上传到 iTunes Connect。我尝试构建存档,但出现了此警告:

 Application failed codesign verification.  The signature was invalid, or it was not signed with an Apple submission certificate. (-19011)

我整天用谷歌搜索,我尝试在配置中心更新我的所有证书,我什至尝试使用应用程序加载器上传它,但发生了任何事情。那里也有同样的错误。我尝试通过管理器中的“存档”选项卡对其进行验证,但无论如何,此警告都不会消失。

我在这里读过一些答案,即使答案有点旧,任何东西都对我有用,我也尝试重新安装 XCode,我尝试在“构建目标”上选择正确的配置文件..

感谢任何人谁将帮助我

编辑:

当我尝试启动一个新项目并选择“构建存档”,然后选择“存档”时,会出现警告,但我仍然可以将存档共享为 ipa。我尝试将旧项目中的所有文件复制到新项目中,构建存档,存档。但是,当我选择“共享”为 .ipa 时,它会显示错误,

The operation couldn't be completed. No such files or directory.

这可能是因为我在项目中添加了 2 个框架才能工作吗?我应该从目标或项目中选择一些东西吗?另外,我想说我的所有配置文件、证书等都正常。我尝试通过打开“否”“验证构建的产品”来绕过错误-19011。

编辑2: -19011 不再出现,但是当我尝试验证或提交时,我收到此错误:

The archive is invalid. var/folders/*randomnumbers* app.ipa does not exist.

在这种情况下我应该做什么?我已经阅读了一些答案,但没有一个有效。

在此处输入图像描述

I'm goin mad.

I'm using XCode 4 and finally i finished my app,and i was about to submit it to App Store,uploading to iTunes Connect. I tried to to Build for Archive but this warning showed up:

 Application failed codesign verification.  The signature was invalid, or it was not signed with an Apple submission certificate. (-19011)

I've googled all day long,i've tried to renew all my certificates in Provisioning Center,i've even tried to upload it with Application loader but anything happened. Same error there too. I've tried to validate it through the Archive tab in Organizer but anything, this warning won't go away.

I've read some answers here, and even if the answers were a bit old, anything worked for me, i've tried to reinstall XCode too,i've tried to select the right profile on Build in Targets..

Thanks to anyone who will help me

edit:

When i try to start a new project and select "Build for Archive" and then Archive, the warning appears but i can still share the archive as ipa. I tried to copy all the files from my old project into the new one, build for archive, archived. But when i select "Share" as .ipa it shows an error

The operation couldn't be completed. No such files or directory.

May this be 'cause i added 2 frameworks to my project to work? Should i select something from Target,or Project? Also,i want to say that all my profiles are ok, certificates etc. I've tried to bypass the error -19011 by turning on NO "Validate built product".

EDIT2:
The -19011 doesn't show up anymore, but when i try to validate or submit,i got this error:

The archive is invalid. var/folders/*randomnumbers* app.ipa does not exist.

What am i supposed to do in this case? I've already read some of the answers but none worked.

enter image description here

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

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

发布评论

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

评论(5

十年不长 2024-11-24 07:15:19

在苹果技术工程师的帮助下,我解决了这个问题:

在目标中,在构建设置 - 产品名称中,我得到了带有空格和特殊字符(? 字符)的应用程序名称。更改它并更改捆绑包名称后,我解决了遇到的所有问题。

希望有一天这会对某人有所帮助。

I solved, thanks to the help of an Apple Technic Engineer, this way:

In targets, on Build Settings - Product name, I had the name of the app with spaces and special characters (? character). After changing that and changing the Bundle Name too, I solved all the problems I got with that.

Hope this will help someone, one day.

云仙小弟 2024-11-24 07:15:19

您说您尝试“更新我在供应中心的所有证书”。您确定:

  1. 使用有效的证书。您是否已将私钥导入到您的钥匙串中?

  2. 为您的“发布”或“分发”配置选择了正确的配置文件 + 证书组合?

您的开发配置可能是正确的,因此您可以在您的设备上进行测试(如果有),但您的发布配置是错误的。

转到 XCode 中的“构建设置”,并验证在“发布”或“分发”下,您选择了分发证书(不是开发证书)以及与其关联的配置文件。

如果这不起作用,您的问题可能与
这个问题。
尝试重新安装?

希望这有帮助。

You said you tried to "renew all my certificates in Provision Center". Are you certain you are:

  1. Using a valid certificate. Have you imported the private key into your keychain?

  2. Chosen the right provisioning profile + certificate combination for your "Release" or "Distribution" configuration?

It's possible that your Development configuration is correct, hence you could test on your device (if you have), but your Release configuration is wrong.

Go to "Build Settings" in XCode and verify that under "Release" or "Distribution", you chose your Distribution certificate (not development certificate) and the provisioning profile tied to it.

If that doesn't work, your problem is possibly related to
this SO question.
Try reinstalling?

Hope this helps.

你又不是我 2024-11-24 07:15:19

您确定您的分发证书适用于应用程序商店,而不是临时分发吗?

Are you sure your distribution certificate is for the app store, and not for ad-hoc distribution?

永言不败 2024-11-24 07:15:19

从“产品”菜单转到“编辑架构”,从左侧边栏找到存档,然后检查您用于存档的构建配置。应该是分配。

另一件要检查的事情是分发配置正在使用哪个配置文件,您可以从代码签名部分下的项目构建设置中检查这一点。

From Product menu go to "Edit Schema", there find the Archive from the left sidebar and check which build configuration you are using for Archive. It should be distribution.

Another thing to check is which provision profile Distribution configuration is using, you can check this from projects Build Settings under Code Signing section.

淡淡の花香 2024-11-24 07:15:19

确保我的证书和配置文件对于内部部署是正确的,并确保目标名称中没有任何不需要的空格或字符后,对我有用的是将我的方案从“运行”页面上的“调试”更改为“发布” 。产品->方案->编辑方案->点击运行->将构建配置更改为发布。

After making sure my certificate and provisioning profile were correct for In-House deployment and making sure I didn't have any unwanted spaces or characters in the target names, what worked for me was to change my scheme from Debug to Release on the Run page. Product -> Scheme -> Edit Scheme -> Click Run -> Change Build Configuration to Release.

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