xcode OTA - 此时无法安装 myApp - 无法验证可执行文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10588488/
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
OTA - myApp couldn't be installed at this time - Could not verify executable
提问by brainray
After almost no problems for 6 months, I suddenly have a major problem when trying to distribute an app for inhouse testing over OTA: while installing the app (after download) I get the below error message -> screenshot. All of my testers also see the same message, so it's not bound to a single device.
在 6 个月几乎没有问题之后,我在尝试通过 OTA 分发用于内部测试的应用程序时突然遇到了一个大问题:在安装应用程序时(下载后),我收到以下错误消息 -> 屏幕截图。我的所有测试人员也看到相同的消息,因此它没有绑定到单个设备。
The console on the device shows the following message:
设备上的控制台显示以下消息:
preflight_application_install: Could not verify executable at /var/tmp/install_staging.uNQth4/foo_extracted/Payload/myApp.app
The strange thing is: I can install the app over USB with Xcode. Also the validation for the AppStore upload is fine.
奇怪的是:我可以使用 Xcode 通过 USB 安装该应用程序。AppStore 上传的验证也很好。
I already tried a lot:
我已经尝试了很多:
- new Distibution Profiles
- checked if the UDIDs are inside the profiles
- checked for double profiles in the keychain
- did Xcode Voodoo (clean build, erasing derived data)
- tried to fix it with entitlements ('get-task-allow' = false)
- 新的分布概况
- 检查 UDID 是否在配置文件内
- 检查钥匙串中的双重配置文件
- 做了 Xcode Voodoo(清理构建,擦除派生数据)
- 试图用权利修复它('get-task-allow' = false)
Any idea to solve this would be very helpful. Thanks in advance.
任何解决这个问题的想法都会非常有帮助。提前致谢。
采纳答案by brainray
After further investigation the problem - once again - was caused by an invalid combination of Developer Provisioning Profile and Ad Hoc Distribution Profile. The problem was, that even the usual fixes didn't work (exchanging certificates etc.). Xcode always showed valid profiles.
经过进一步调查,问题再次出现是由开发人员配置文件和 Ad Hoc 分发文件的无效组合引起的。问题是,即使是通常的修复也不起作用(交换证书等)。Xcode 总是显示有效的配置文件。
I have read a lots of post that recommend a complete reinstallation of MacOS with the goal to have a clean installation of the KeyChain. I didn't want to kill my customized MacOS, so I created a virtual machine of Mac OS 10.7.3 + Xcode using VMWare. Then it was like 20 minutes to set everything up and the OTA worked! I think, it's a good idea to have a clean virtual OS handy for this case.
我已经阅读了很多建议完全重新安装 MacOS 的帖子,目的是干净安装 KeyChain。我不想杀死我定制的 MacOS,所以我使用 VMWare 创建了一个 Mac OS 10.7.3 + Xcode 的虚拟机。然后大约 20 分钟就完成了所有设置,OTA 就开始工作了!我认为,为这种情况准备一个干净的虚拟操作系统是个好主意。
回答by rsmartpr
In my case the problem was that the IPA file had a bundle-version number and the plist file had a different bundle-version number.
在我的例子中,问题是 IPA 文件有一个包版本号,而 plist 文件有一个不同的包版本号。
Changed the plist file to have the same number as the IPA file and it worked for me.
将 plist 文件更改为与 IPA 文件具有相同的编号,它对我有用。
回答by Julian Corrêa
In Member Center, I delete the ad-hoc distribution provisioning and create again. After recompile, worked for me!
在会员中心,我删除了临时分发配置并重新创建。重新编译后,对我来说有效!
回答by Cilan
I had this same problem, and I fixed it because I remembered I got a new phone, so I hooked it up with Xcode (developer mode) and added the device to the provisioning profile and re-installed the profile.
我遇到了同样的问题,我修复了它,因为我记得我有一部新手机,所以我将它与 Xcode(开发者模式)连接起来,并将设备添加到配置文件中,然后重新安装了配置文件。
回答by Owen Hartnett
If you've got an OTA build, you don't need an ad-hoc one. Toss those profiles.
如果您有 OTA 构建,则不需要临时构建。扔掉那些配置文件。