iPhone 应用程序代码签名仅针对“设备”失败;释放”

发布于 2024-09-11 12:46:36 字数 559 浏览 2 评论 0原文

我可以编译并安装(在 iPhone 上)我编写的几个应用程序。

我有 1 个用于开发任何应用程序的通用“*”证书。 (它会在 6 天后过期)

我有单独的“com.site.appName”用于分发每个应用程序。

但是有一个应用程序刚刚开始给出:

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

当我尝试使用“设备+发布”设置时,我只收到上述错误。

它仍然可以安装在手机上......并且似乎运行良好。 (如果没有代码签名,这不是不可能吗?)

当我尝试“设备+调试”或“设备+分发”时,根本没有签名错误。 (所以我知道我的某些设置正确。)

我认为这一切意味着我的“项目信息+设备+发布”值中设置了错误。 (但是在哪里???)

或者我应该检查我的“目标信息+设备+发布”值?

I can compile and install (on the iphone) several of the apps I've written.

I have 1 generic "*" certificate for developing any app. (It expires in 6 days)

I have individual "com.site.appName" for distributing each app.

But there's this 1 app, that just started giving:

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

I only get the above error when I try using "device + release" setting.

It still can be installed on the phone... and seems to run fine.
(Isn't that impossible if isn't not code-signed?)

When I try "device + debug" or "device + distribute", there's no signing error at all.
(So I know I have SOMETHING set correctly.)

I assume all this means I have something set wrong in my "project info + device + release" values. (But where????)

Or I should I be checking my "target info + device + release" values instead?

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

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

发布评论

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

评论(2

和我恋爱吧 2024-09-18 12:46:36

这可能有效,也可能无效,但它解决了很多这些情况:

  1. 下载 iPhone 配置实用程序
  2. 终止 Xcode
  3. 使用 iPCU 删除所有配置文件
  4. 插入您的手机,找到配置文件列表,然后为所有配置文件选择“删除”
  5. 手动拖动/将每个配置文件放入 iPCU,从 Finder
  6. 重新启动 XCode

...因为 XCode 用于选择用于代码签名的正确证书的内部代码存在错误。没有什么特别的原因,只是苹果写得不好。它正在变得更好,但即使在最新的 Xcode 中,有时仍然会出错。

永远不要使用 xcode 来安装配置文件 - 无论 Apple 怎么说,Xcode 安装处理代码仍然有错误,而奇怪的是 iPCU 代码却没有。

另外,您的手机有时会有同一配置文件的多个版本(这应该是不可能的,但事实并非如此)... iPCU 可以让您解决这个问题

This might work, might not, but it fixes a lot of these situations:

  1. Download iPhone Configuration Utility
  2. Kill Xcode
  3. Delete all profiles using iPCU
  4. Plug in your phone, find the list of profiles, and select "remove" for ALL of them
  5. Manually drag/drop each profile into iPCU, from the Finder
  6. Restart XCode

...because XCode's internal code for selecting the right certificates to use for code-signing is buggy. No particular reason for this, just Apple didn't write it very well. It's getting better, but even in latest Xcode it still sometimes goes wrong.

NEVER use xcode to install a provisioning profile - no matter what Apple says, the Xcode install-handling code is still buggy, whereas strangely the iPCU code is not.

Also, your phone will sometimes have multiple versions of the same profile (which ought to be impossible, but it's not) ... iPCU lets you fix that

那些过往 2024-09-18 12:46:36

如果它可以安装到 iPhone 中,则它不是用分发证书签名的,而是用开发证书签名的。检查项目->设置、目标->设置是否为发布设备配置选择了正确的身份(iPhone Distribution)。

If it can be installed into iPhone, it wasn't signed with distribution certificate, but with development one. Check project->settings, target->settings if correct identity (iPhone Distribution) is selected for Release-Device configuration.

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