尝试从Xcode在iPhone 4S上运行我的应用程序“此应用程序不支持此设备的CPU类型”

问题描述 投票:0回答:2

该应用程序是为armv7架构而构建的。我仔细检查了二进制头,它包含12个CPU类型和9个CPU子类型。该应用程序在iPhone 5上运行良好,但在iPhone 4S或iPad Mini上失败。两者都安装了iOS 7.0.3。 Xcode 5.0版。 plist中没有特定的处理器要求。请参阅以下设备控制台日志有任何想法吗?

11月14日13:09:42 iPhone-4S installd [62]:0x25d000 file_matches_my_arch:无法映射输入文件:/var/tmp/install_staging.7IZ38C/xxxx.app/xxxx

11月14日13:09:42 iPhone-4S installd [62]:0x25d000 do_preflight_verification:/var/tmp/install_staging.7IZ38C/xxxx.app上的架构不正确

11月14日13:09:42 iPhone-4S mobile_installation_proxy [138]:0x181000 MobileInstallationInstallForLaunchServices:失败,带-1

11月14日13:09:42 iPhone-4S installd [62]:0x25d000 install_application:无法预检应用程序安装

11月14日13:09:42 iPhone-4S mobile_installation_proxy [138]:错误:MobileInstallationInstallForLaunchServices返回零

11月13日13:09:42 iPhone-4S mobile_installation_proxy [138]:0x181000 handle_install:安装失败:错误Domain = LaunchServicesError Code = 0“操作无法完成。(LaunchServicesError错误0)。”UserInfo = 0x15d3fc90 {Error = IncorrectArchitecture}

11月14日13:09:42 iPhone-4S installd [62]:0x25d000 handle_install_for_ls:API失败

ios iphone xcode architecture cpu
2个回答
0
投票

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

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


0
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.