在为iPhone设备构建应用程序时无法验证应用程序错误 [英] Application could not be verified error when building app for iPhone device

查看:158
本文介绍了在为iPhone设备构建应用程序时无法验证应用程序错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,我刚刚拥有一台闪亮的全新MacBook Pro,并且已经在另一台MacBook上开发我的iPhone应用程序,我想将我的开发迁移到我的新电脑。

OK, I've just got myself a shiny new MacBook Pro, and having been developing my iPhone app on another MacBook, I wanted to migrate my development to my new computer.

我已经到了可以构建应用程序并在模拟器上运行它没有问题的阶段,但是当我在iPhone上运行应用程序时,我不断得到应用程序无法验证。我已经安装了新的开发人员证书,并安装了配置文件(所有生成的新文件),但我不知道为什么我仍然会收到错误。

I've got to the stage where I can build the app and run it on the simulator no problem, but when it comes to running the app on my iPhone, I keep getting "The application could not be verified". I have installed a new developer certificate, and installed the provisioning profiles (all generated new), but I'm at a loss as to why I should still be getting the error.

任何人对我出错的地方都有任何想法吗?

Anyone have any ideas as to where I'm going wrong?

编辑

我重新创建了证书和profisioning profile等...构建成功,底部的状态一直到'在设备上安装',然后两个模态对话框显示相同的应用程序可以不能验证错误信息。

I've recreated the certificate and profisioning profile, etc... The Build succeeds, and the status at the bottom gets all the way to 'Installing on Device', then two modal dialogs are displayed with the same "Application could not be verified" error message.

我能得到的输出会给我一个确切的错误吗?

Is there any output I can get to that will give me a precise error?

编辑

好的,我从Organizer获得了相应的日志来显示问题。看起来我没有设置Entitlements.plist,但在xcode中,我有。 (我添加了一个Entitlements.plist fole,然后取消选中get-task-allow,然后将Entitlements.plist添加到Code Signing Entitlements下的项目设置中)。日志是:

OK, I've got the appropriate log from Organizer showing the problem. It looks like I haven't set up the Entitlements.plist, but in xcode, I have. (I've added an Entitlements.plist fole, then unchecked get-task-allow, then added Entitlements.plist to the project settings under Code Signing Entitlements). The log is:

Tue Jun 16 07:35:42 unknown mobile_installation_proxy[1162] <Error>: install_embedded_profile: Skipping the installation of the embedded profile
Tue Jun 16 07:35:42 unknown securityd[1158] <Error>: mobile_installat[1162] SecItemCopyMatching: missing entitlement
Tue Jun 16 07:35:42 unknown securityd[1158] <Error>: mobile_installat[1162] SecItemCopyMatching: missing entitlement
Tue Jun 16 07:35:42 unknown securityd[1158] <Error>: mobile_installat[1162] SecItemCopyMatching: missing entitlement
Tue Jun 16 07:35:42 unknown securityd[1158] <Error>: mobile_installat[1162] SecItemCopyMatching: missing entitlement
Tue Jun 16 07:35:43 unknown mobile_installation_proxy[1162] <Error>: entitlement 'get-task-allow' has value not permitted by a provisioning profile
Tue Jun 16 07:35:43 unknown mobile_installation_proxy[1162] <Error>: verify_executable: Could not validate signature: e8008016
Tue Jun 16 07:35:43 unknown mobile_installation_proxy[1162] <Error>: preflight_application_install: Could not verify /var/tmp/install_staging.1WIVsB/BouldrData.app/BouldrData
Tue Jun 16 07:35:43 unknown mobile_installation_proxy[1162] <Error>: install_application: Could not preflight application install
Tue Jun 16 07:35:43 unknown mobile_installation_proxy[1162] <Error>: handle_install: Installation failed
Tue Jun 16 07:51:53 unknown afcd[1181] <Error>: user mobile has uid 501
Tue Jun 16 07:51:53 unknown afcd[1181] <Error>: mode is 0x41e8

有人可以解释为什么这不能按预期工作吗?

Can anyone shed any light on why this isn't working as expected?

编辑

让构建工作,但我还没有接受答案,因为我没有关于发生了什么的想法。谁知道发生了什么?

Got the build working, but I've not accepted an answer yet, as I have no idea as to what's going on. Anyone with any idea as to what is going on?

推荐答案

来自 ADC上的这个主题

get-task-allow,当登录到应用程序时,允许其他进程(如调试器)附加到您的应用程序。分发配置文件要求关闭此值,而开发配置文件需要打开此值(否则Xcode将永远无法启动并附加到您的应用程序)。

get-task-allow, when signed into an application, allows other processes (like the debugger) to attach to your app. Distribution profiles require that this value be turned off, while development profiles require this value to be turned on (otherwise Xcode would never be able to launch and attach to your app).

这篇关于在为iPhone设备构建应用程序时无法验证应用程序错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆