[英]Why am I seeing “This application does not support this device's CPU type”?
When trying to build and install an application on an iPod running iOS 4.2.1, I'm seeing the error 尝试在运行iOS 4.2.1的iPod上构建和安装应用程序时,出现错误
This application does not support this device's CPU type 此应用程序不支持该设备的CPU类型
I'm trying to build the application using xcode 4.3, as well as xcode 4.4, and still seeing this. 我正在尝试使用xcode 4.3和xcode 4.4来构建应用程序,并且仍然看到这一点。 What can cause this and how can I fix it? 是什么原因引起的,如何解决?
I have encountered such a problem today on iOS 11.2.1 with iPhone 7 devices. 我今天在iPhone 7设备的iOS 11.2.1上遇到了这样的问题。
The reason is that the previous project set up a 32-bit architecture that is no longer supported. 原因是以前的项目设置了不再受支持的32位体系结构。 And I solved the problem as follows: 我解决了如下问题:
Project -> Build Settings -> Architectures value should be set Standard architectures - $(ARCHS_STANDARD)
项目->构建设置->架构值应设置为Standard architectures - $(ARCHS_STANDARD)
From the project build settings -> Architectures, make sure you have both armv6
and armv7
values. 从项目构建设置->体系结构中,确保同时具有armv6
和armv7
值。
Also, you can check your Info.plist file, under Required device capabilities
. 另外,您可以在“ Required device capabilities
下检查Info.plist文件。 If there's armv7
there, remove it. 如果那里有armv7
,请将其删除。
This post led me to my answer. 这篇文章使我得到了答案。 Thanks @adig and @masam 谢谢@adig和@masam
I have an iOS 8.4 enterprise signed app that would only work on certain device types when I tried to install it from our internal app store, and it was inconsistent. 我有一个iOS 8.4企业签名的应用程序,当我尝试从内部应用程序商店安装它时,它只能在某些设备类型上运行,并且不一致。 I wasn't getting any helpful error messages, even from the device console, until I tried to deploy it using the XCode Devices to a 5th gen iPod. 直到我尝试使用XCode Devices将其部署到第五代iPod上时,我什至没有从设备控制台收到任何有用的错误消息。 It said "This application does not support this device type" which led me to here. 它说“此应用程序不支持此设备类型”,这导致我到了这里。 I was debugging on a 6th gen iPod/iPhone 6. 我正在使用第六代iPod / iPhone 6进行调试。
I was archiving from a different scheme than I usually release from and I was only building the current architecture which meant that it would only work on a certain type of device depending on what was plugged in when I archived. 我正在使用与通常发布的方案不同的方案进行归档,而我只是在构建当前体系结构,这意味着它只能在某种类型的设备上运行,具体取决于我存档时插入的内容。
So make sure that "build active architecture only" is NO when you are archiving an app to sign as an Enterprise app. 因此,在存档应用程序以登录为企业应用程序时,请确保“仅构建活动架构”为否。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.