iPhone 应用程序代码签名仅针对“设备”失败;释放”
我可以编译并安装(在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这可能有效,也可能无效,但它解决了很多这些情况:
...因为 XCode 用于选择用于代码签名的正确证书的内部代码存在错误。没有什么特别的原因,只是苹果写得不好。它正在变得更好,但即使在最新的 Xcode 中,有时仍然会出错。
永远不要使用 xcode 来安装配置文件 - 无论 Apple 怎么说,Xcode 安装处理代码仍然有错误,而奇怪的是 iPCU 代码却没有。
另外,您的手机有时会有同一配置文件的多个版本(这应该是不可能的,但事实并非如此)... iPCU 可以让您解决这个问题
This might work, might not, but it fixes a lot of these situations:
...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
如果它可以安装到 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.