iPhone 代码签名失败

发布于 2024-09-16 13:04:53 字数 269 浏览 2 评论 0原文

所以 - 我是一名注册 iPhone 开发者(已支付 99 美元/年)。我已按照 Apple 提供的所有步骤获取配置和代码签名文件。但是,当我单击“构建”时,它显示:

“应用程序协同设计验证失败。签名无效,或者未使用 Apple 提交证书签名。(-19011)”

我已重新-反复下载了所有的证书和配置文件,还是不行。但是,如果我单击“构建”(它显示协同设计失败),然后将产品 .app 文件拖到管理器中的我的设备或单击“运行”,它将在我的设备上运行。有什么建议吗?

So - I am a registered iPhone developer (Having paid my $99/year). I have followed all the steps provided by Apple to get the provisioning and code-signing files. However, when I click 'build', it says:

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

I have re-downloaded all of the certificates and profiles repeatedly, and it still won't work. However, if I click 'build' (and it says codesign failed), but then drag the product .app file to my device in the organizer or click "Run", it will run on my device. Any suggestions?

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

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

发布评论

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

评论(3

骄傲 2024-09-23 13:05:01

-19011 代码验证错误的可能原因有很多(如 关于它的数十个几乎相同的 stackoverflow 问题)。消息的详细信息中暗示了具体原因(请参阅 Apple 技术说明 TN2250 关于 -19011 问题的建议 了解详细信息)

在我的例子中,错误详细信息包含短语“无法加载配置文件:”,之后我发现应用程序或 xcode 方案名称中包含空格或特殊字符可能会导致协同设计验证失败。

There are many possible causes of the -19011 code verification error (as evidenced by the dozens of near identical stackoverflow questions about it). The specific cause is hinted at in the detail of the message (see Apple Technical note TN2250 advice on the -19011 issue for details)

In my case the error detail contained the phrase "Failed to load provision profile from:" after which I discovered that having spaces or special characters in the app OR the xcode scheme name can cause codesign verification fail.

只是一片海 2024-09-23 13:05:00

您的个人资料是否显示在 Xcode 的 Organizer 窗口中? (如果没有,请将文件从 Finder 拖到 Xcode。)

您的 Xcode 项目设置中选择了什么配置文件?您正在构建调试、发布还是分发?

Does your profile show up in Xcode's Organizer window? (If not, drag the files from Finder to Xcode.)

What profile is selected in your Xcode project settings? Are you building debug, release, or for distribution?

听你说爱我 2024-09-23 13:04:58

由于您可以在设备上运行 .app,因此您的问题可能是您使用开发人员配置文件构建了它。那是行不通的。您需要使用应用程序商店的分发配置文件来构建它。

Apple 提供了有关如何执行此操作的良好信息,但我认为该信息有点隐藏在所有 itunesconnect/provisioning 门户内容中...检查此链接:http://developer.apple.com/iphone/manage/distribution/index.action 。在那里你会看到两个重要的点:
“创建并下载用于 App Store 分发的 iPhone 分发配置文件”
“使用 Xcode 构建您的应用程序以进行分发”

祝你好运:-)

Since you are able to run the .app on your device, your problem might be that you have buildt it with your developer provision profile. That won't work. You need to build it with a distribution provisioning profile for App store.

Apple provides good information of how to do this, but I think the info is kind of hidden in all this itunesconnect/provisioning portal stuff... Check this link: http://developer.apple.com/iphone/manage/distribution/index.action . There you sould see two important points:
"Create and download your iPhone Distribution Provisioning Profile for App Store Distribution"
"Building your Application with Xcode for Distribution"

Good luck :-)

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