简体   繁体   English

iOS-无法在非越狱设备上安装应用

[英]iOS - failing to install app on non-jailbroken devices

We have a bunch of iOS devices in our office, and I simply can't install any of my applications on 2 of them. 我们办公室里有一堆iOS设备,我根本无法在其中2个上安装我的任何应用程序。

The devices on which I can't install are iPhone 4 with iOS 4.3 and iPhone 5 with iOS 6.0. 我无法安装的设备是带有iOS 4.3的iPhone 4和带有iOS 6.0的iPhone 5。 Both are not jailbroken. 两者都没有越狱。

However, I can install just fine on similar devices with similar iOS versions which are jailbroken. 但是,我可以在具有类似iOS版本且已越狱的类似设备上很好地安装。 We have another iPhone 4 with iOS 4.3 which is jailbroken and on which I manage to install just fine. 我们还有另一台装有iOS 4.3的iPhone 4,它已经越狱了,我设法在上面安装就可以了。 Also successfully installed on a friend's jailbroken iPhone 5 with iOS 6.0. 还成功安装在朋友的越狱的iPhone 5上,带有iOS 6.0。

This happens whether I'm deploying using TestFlight, iTunes or iFunBox. 无论我是使用TestFlight,iTunes还是iFunBox进行部署,都会发生这种情况。 The same thing happens with IPAs deployed using Marmalade 使用果酱制造的IPA也会发生同样的情况

Things I've tried and didn't work: 我尝试过但不起作用的事情:

  • Building with both development and distribution profiles where applicable. 在适用的情况下使用开发和发行配置文件进行构建。
  • Installing the provisioning profiles through iTunes. 通过iTunes安装配置文件。
  • Installing the provisioning profiles through iPhone configuration Utility. 通过iPhone配置实用程序安装配置文件。
  • Adding Entitlements.plist file with parameters as mentioned in similar posts. 如类似文章中所述,使用参数添加Entitlements.plist文件。

none of the other solutions I've found online helped 我在网上找到的其他解决方案都没有帮助

This is the console log I get when trying to install from Testflight or iTunes: 这是尝试从Testflight或iTunes安装时收到的控制台日志:

May 12 16:58:44 unknown configd[25] <Debug>: CaptiveNetworkSupport:UIAllowedNotifyCallback:70 uiallowed: false
May 12 16:58:46 unknown lockdownd[17] <Error>: 012c2000 handle_connection: Could not receive USB message #6 from iTunes. Killing connection
May 12 16:58:46 unknown com.apple.mobile.lockdown[17] <Notice>: Could not receive size of message
May 12 16:58:49 unknown com.apple.mobile.lockdown[17] <Notice>: Could not receive size of message
May 12 16:58:49 unknown lockdownd[17] <Error>: 2ffb4000 handle_connection: Could not receive USB message #6 from Xcode. Killing connection
May 12 16:58:50 unknown com.apple.mobile.lockdown[17] <Notice>: Could not receive size of message
May 12 16:58:50 unknown lockdownd[17] <Error>: 012c2000 handle_connection: Could not receive USB message #6 from iPhone Configuration Utility. Killing connection
May 12 16:58:50 unknown installd[467] <Error>: 2ffa3000 verify_signer_identity: Could not copy validate signature: -402620395
May 12 16:58:50 unknown installd[467] <Error>: 2ffa3000 preflight_application_install: Could not verify executable at /var/tmp/install_staging.77Ng6N/foo_extracted/Payload/Mooniz.app
May 12 16:58:50 unknown installd[467] <Error>: 2ffa3000 install_application: Could not preflight application install
May 12 16:58:50 unknown installd[467] <Error>: 2ffa3000 handle_install: API failed
May 12 16:58:50 unknown com.apple.itunesstored[478] <Notice>: MobileInstallationInstall: failed with -1
May 12 16:58:55 unknown lockdownd[17] <Error>: 2ffb4000 handle_connection: Could not receive USB message #6 from iTunes. Killing connection
May 12 16:58:55 unknown com.apple.mobile.lockdown[17] <Notice>: Could not receive size of message

and this is the error I get when trying to install through iFunBox: 这是我尝试通过iFunBox安装时遇到的错误:

iFunBox错误

Help is appreciated 感谢帮助

Did you check that these 2 devices are added to your provisioning profile? 您是否检查了这两个设备是否已添加到您的配置文件中?

It sounds exactly like the problem if UDID of devices weren't added to provisioning profile (or were added incorrect). 如果未将设备的UDID添加到供应配置文件中(或添加了不正确的设备),这听起来像是一个问题。

Installing once through through Xcode seems to have fixed the problem. 通过Xcode安装一次似乎已解决了该问题。 After doing this, I can now install the app on the non jailbroken devices through other means (TestFlight, iFunBox), works just fine. 完成此操作后,我现在可以通过其他方式(TestFlight,iFunBox)将应用程序安装在非越狱设备上,效果很好。

EDIT: 编辑:

I found the real culprit, and it was the entitlements file after all. 我找到了真正的罪魁祸首,毕竟这是权利文件。 Since we're working on code which was written and released by our customer, and had to create our own bundle ID - some of the entitlements were missing from our profile, such as push notifications and iCloud. 由于我们正在处理由客户编写和发布的代码,并且必须创建我们自己的捆绑包ID-我们的个人资料中缺少一些权利,例如推送通知和iCloud。 After adding them, installation went fine 添加它们后,安装正常

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在非越狱的iOS设备上直接从浏览器安装tongbu tui应用程序? - How is the tongbu tui app able to be installed directly from the browser on non-jailbroken iOS devices? Quettra Portrait如何获取未越狱的iOS设备上已安装的应用程序的列表? - How does Quettra Portrait get the list of installed apps on non-jailbroken iOS devices? 难以篡改非越狱设备上的游戏数据 - Make it hard to tamper with game data on non-jailbroken devices 只能在非越狱设备上访问专用API,以用于商业用途 - Access private APIs on NON-jailbroken devices for Business use ONLY 如何使用专用框架为非越狱设备以编程方式删除iOS应用 - How to delete an iOS app programatically using private framework for non-jailbroken device iOS-检测短信/通话通知(非越狱设备) - iOS - Detect text message/call notifications (non-jailbroken device) 在非越狱的iOS设备上启用/禁用Wifi - Enable/Disable Wifi on non-jailbroken iOS device 非越狱 ios 上的 mozilla webxr-viewer 远程调试 - mozilla webxr-viewer remote debug on non-jailbroken ios 以编程方式关闭未越狱的 iPhone - Programmatically turn off a non-jailbroken iPhone 在USB连接的非越狱iOS设备上从命令行启动应用程序 - Launch application from commandline on usb Connected non-jailbroken iOS device
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM