xcode iOS 安装错误:ApplicationVerificationFailed

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/22291284/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 04:43:42  来源:igfitidea点击:

iOS Installation Error: ApplicationVerificationFailed

iosiphonexcodeairfdt

提问by DT DT

I have spent the last 6hrs searching the web for this bugs, I have read and tried many suggested solutions and still couldn't fix my problem. So lets hope someone can point me to the right direction this time.

在过去的 6 小时内,我一直在网上搜索此错误,我已阅读并尝试了许多建议的解决方案,但仍然无法解决我的问题。所以希望这次有人能指出我正确的方向。

I am using FDT to build AIR app, I can test it using iOS Simulator, I can package it and deploy to iTuneConnect but I just can't push it to my iPhone so I can test it. I am sure that my mobileprovision is correct (I check it with XCode 5), the app id is correct, and p12 is good also.

我正在使用 FDT 来构建 AIR 应用程序,我可以使用 iOS Simulator 对其进行测试,我可以将其打包并部署到 iTuneConnect,但我无法将其推送到我的 iPhone,因此我可以对其进行测试。我确定我的 mobileprovision 是正确的(我用 XCode 5 检查过),应用程序 id 是正确的,而且 p12 也很好。

Here is the log I get from XCode console:

这是我从 XCode 控制台获得的日志:

Mar  9 22:27:32 202-436-0338 installd[17] <Notice>: 0x10050c000 MobileInstallationInstall_Server: Installing app com.abcd.bht
Mar  9 22:27:33 202-436-0338 installd[17] <Error>: 0x10050c000 verify_signer_identity: MISValidateSignatureAndCopyInfo failed for /var/tmp/install_staging.WPRL4j/foo_extracted/Payload/BHT.app/BHT: 0xe8008015
Mar  9 22:27:33 202-436-0338 installd[17] <Error>: 0x10050c000 do_preflight_verification: Could not verify executable at /var/tmp/install_staging.WPRL4j/foo_extracted/Payload/BHT.app
Mar  9 22:27:33 202-436-0338 installd[17] <Error>: 0x10050c000 install_application: Could not preflight application install
Mar  9 22:27:33 202-436-0338 mobile_installation_proxy[142] <Error>: 0x10050c000 MobileInstallationInstallForLaunchServices: failed with -1
Mar  9 22:27:33 202-436-0338 mobile_installation_proxy[142] <Warning>: ERROR: MobileInstallationInstallForLaunchServices returned nil
Mar  9 22:27:33 202-436-0338 mobile_installation_proxy[142] <Error>: 0x10050c000 handle_install: Installation failed: Error Domain=LaunchServicesError Code=0 "The operation couldn't be completed. (LaunchServicesError error 0.)" UserInfo=0x12c5121d0 {Error=ApplicationVerificationFailed, ErrorDetail=-402620395}
Mar  9 22:27:33 202-436-0338 installd[17] <Error>: 0x10050c000 handle_install_for_ls: API failed

Provision file is correct as shown in XCode

配置文件正确,如 XCode 所示

回答by Imran Ahmed

have you installed previously any application on your device with the same bundle identifier? it may also can cause the problem. so you can try :

您之前是否在您的设备上安装了任何具有相同捆绑标识符的应用程序?它也可能导致问题。所以你可以尝试:

  1. delete all adHoc apps from your phone.

  2. clean build from Xcode.

  3. double check that if you put correct bundle id and selected correct provisioning profiles.

  4. your device added to provisioning profile? may be you created first provisioning profile, then added device in developer portal. (Recommended that check your device again in developer portal and create again adhoc profile.)

  5. install again

  1. 从您的手机中删除所有临时应用程序。

  2. 从 Xcode 清理构建。

  3. 仔细检查您是否放置了正确的捆绑包 ID 并选择了正确的配置文件。

  4. 您的设备已添加到配置文件中?可能是您首先创建了配置文件,然后在开发人员门户中添加了设备。(建议在开发人员门户中再次检查您的设备并再次创建临时配置文件。)

  5. 重新安装