简体   繁体   English

为什么会看到“此应用程序不支持该设备的CPU类型”?

[英]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. 从项目构建设置->体系结构中,确保同时具有armv6armv7值。

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 ,请将其删除。

If you are getting this error building Unity 3D application, change scripting backend to IL2CPP, and select "Universal" architecture. 如果在构建Unity 3D应用程序时遇到此错误,请将脚本后端更改为IL2CPP,然后选择“通用”体系结构。

ios播放器设置配置

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.

相关问题 尝试从 Xcode 在 iPhone 4S 上运行我的应用程序时出现“此应用程序不支持此设备的 CPU 类型” - Got "This application does not support this device's CPU type" trying to run my application on iPhone 4S from Xcode 为什么在我的应用程序中看到以下异常? - Why am I seeing the following exception within my application? 为什么在OS 3.1上的应用程序中看不到加载屏幕,但在4.0上却显示? - Why am I not seeing a loading screen in my application on OS 3.1, but I am on 4.0? 为什么我在生产应用程序中看到iAd的广告,就像我在开发中所做的那样? - Why am I seeing iAd's advertisements, like I did in development, in my production app? 为什么会看到错误“格式不是字符串文字且没有格式参数”? - Why am I seeing the error “Format is not a string literal and no format arguments”? 为什么我看到有关NSAutoreleasePool不可用的消息警告? - Why am I seeing a message warning about NSAutoreleasePool being unavailable? 为什么在显示此表视图时看到崩溃? - Why am I seeing a crash when displaying this table view? 在使用Core Plot构建iPhone应用程序时,为什么会看到以下链接器错误? - Why am I seeing the following linker errors when building an iPhone app with Core Plot? 为什么我看到有关核心情节的_OBJC_CLASS _ $ _ CPGraphHostingView的错误? - Why am I seeing an error about _OBJC_CLASS_$_CPGraphHostingView with Core Plot? 在为Pebble手表进行开发时,为什么在iOS上的-setAppUUID:上看到错误? - Why am I seeing an error on -setAppUUID: on iOS when developing for the Pebble watch?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM