【问题标题】:Got "This application does not support this device's CPU type" trying to run my application on iPhone 4S from Xcode得到“此应用程序不支持此设备的 CPU 类型”试图从 Xcode 在 iPhone 4S 上运行我的应用程序
【发布时间】:2013-11-27 05:48:03
【问题描述】:

该应用程序是为 armv7 架构构建的。我仔细检查了二进制标头,它包含 12 个 CPU 类型和 9 个 CPU 子类型。

该应用程序在 iPhone 5 上运行良好,但在 iPhone 4S 或 iPad Mini 上失败。两者都安装了 iOS 7.0.3。 Xcode 5.0 版。 plist 中没有特定的处理器要求。

请参阅下面的设备控制台日志。有什么想法吗?

Nov 14 13:09:42 iPhone-4S installd[62] <Error>: 0x25d000 file_matches_my_arch: Can't map input file: /var/tmp/install_staging.7IZ38C/xxxx.app/xxxx

Nov 14 13:09:42 iPhone-4S installd[62] <Error>: 0x25d000 do_preflight_verification: Incorrect architecture at /var/tmp/install_staging.7IZ38C/xxxx.app

Nov 14 13:09:42 iPhone-4S mobile_installation_proxy[138] <Error>: 0x181000 MobileInstallationInstallForLaunchServices: failed with -1

Nov 14 13:09:42 iPhone-4S installd[62] <Error>: 0x25d000 install_application: Could not preflight application install

Nov 14 13:09:42 iPhone-4S mobile_installation_proxy[138] <Warning>: ERROR: MobileInstallationInstallForLaunchServices returned nil

Nov 14 13:09:42 iPhone-4S mobile_installation_proxy[138] <Error>: 0x181000 handle_install: Installation failed: Error Domain=LaunchServicesError Code=0 "The operation couldn’t be completed. (LaunchServicesError error 0.)" UserInfo=0x15d3fc90 {Error=IncorrectArchitecture}

Nov 14 13:09:42 iPhone-4S installd[62] <Error>: 0x25d000 handle_install_for_ls: API failed

【问题讨论】:

    标签: ios iphone xcode architecture cpu


    【解决方案1】:

    重建 ipa(Xcode 6,相同的构建配置)为我解决了这个问题。对我来说,这似乎是构建过程中的一个错误。

    【讨论】:

      【解决方案2】:

      我不确定 Xcode 5 但在 Xcode 4 中你必须确保你也设置了armv6

      见: Why am I seeing "This application does not support this device's CPU type"?

      【讨论】:

      • 我从来不需要 armv6 架构才能在 armv7 设备上运行。
      猜你喜欢
      • 2018-07-02
      • 2018-05-13
      • 2015-03-11
      • 1970-01-01
      • 2016-03-28
      • 2014-06-05
      • 2019-04-24
      • 1970-01-01
      相关资源
      最近更新 更多