ios 为什么我看到“此应用程序不支持此设备的 CPU 类型”?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12670006/
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
Why am I seeing "This application does not support this device's CPU type"?
提问by Nishan29
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. What can cause this and how can I fix it?
我正在尝试使用 xcode 4.3 以及 xcode 4.4 构建应用程序,但仍然看到这一点。什么会导致这种情况,我该如何解决?
回答by andy0570
I have encountered such a problem today on iOS 11.2.1with iPhone 7devices.
The reason is that the previous project set up a 32-bit architecture that is no longer supported.
And I solved the problem as follows:
我今天在使用iPhone 7设备的iOS 11.2.1上遇到了这样的问题。
原因是之前的项目设置了不再支持的32位架构。我解决了以下问题:
Project -> Build Settings -> Architectures value should be set Standard architectures - $(ARCHS_STANDARD)
Project -> Build Settings -> Architectures 值应该被设置 Standard architectures - $(ARCHS_STANDARD)
回答by adig
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
. If there's armv7
there, remove it.
此外,您可以检查您的 Info.plist 文件,在Required device capabilities
. 如果有armv7
,请删除它。
回答by Alex Sikilinda
回答by hawkeyecoder
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. 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. 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.
我有一个 iOS 8.4 企业签名应用程序,当我尝试从我们的内部应用程序商店安装它时,它只能在某些设备类型上运行,并且它不一致。在我尝试使用 XCode 设备将其部署到第 5 代 iPod 之前,我没有收到任何有用的错误消息,即使是从设备控制台也是如此。它说“此应用程序不支持此设备类型”,这使我来到这里。我正在第 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.
因此,在归档应用程序以作为企业应用程序签名时,请确保“仅构建活动架构”为“否”。