好的,我刚刚给自己买了一台闪亮的新 MacBook Pro,并且一直在另一台 MacBook 上开发我的 iPhone 应用程序,我想将我的开发迁移到我的新计算机上。
我已经到了可以构建应用程序并在模拟器上运行它没问题的阶段,但是在我的 iPhone 上运行应用程序时,我不断收到“无法验证应用程序”。我已经安装了一个新的开发人员证书,并安装了配置文件(所有生成的都是新的),但我不知道为什么我仍然应该收到错误。
有人对我要去哪里有任何想法吗?
编辑
我已经重新创建了证书和配置文件等...构建成功,底部的状态一直到“正在设备上安装”,然后显示两个模式对话框,显示相同的“无法验证应用程序“ 错误信息。
有没有我能得到的输出会给我一个精确的错误?
编辑
好的,我从 Organizer 那里得到了显示问题的相应日志。看起来我还没有设置 Entitlements.plist,但在 xcode 中,我有。(我添加了一个 Entitlements.plist fole,然后取消选中 get-task-allow,然后将 Entitlements.plist 添加到代码签名权利下的项目设置中)。日志是:
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
谁能解释为什么这不能按预期工作?
编辑
构建工作,但我还没有接受答案,因为我不知道发生了什么。任何人都知道发生了什么?