简体   繁体   English

如何配置必须在iOS 5.1.1上运行的通用应用程序,以便它也可以在iPhone 5S上以64位运行?

[英]How to configure a universal app which must run on iOS 5.1.1 such that it also runs with 64 bit on iPhone 5S?

With Xcode 5.0.2 I try to run and profile an app on an iPad 1 running iOS 5.1.1. 使用Xcode 5.0.2,我尝试在运行iOS 5.1.1的iPad 1上运行和配置应用程序。 The app is universal and based on a modern template. 该应用程序是通用的,基于现代模板。 Deployment target is iOS 5. 部署目标是iOS 5。

To my understanding Apple expects that developers include 64-bit versions in their apps and when they do, the app bundle has 32 and 64 bit code. 据我了解,Apple期望开发人员在其应用程序中包含64位版本,并且当他们这样做时,该应用程序包具有32位和64位代码。 It seems that if your app targets iOS < 6 it can't include a 64 bit version. 看来,如果您的应用针对iOS <6,则它不能包含64位版本。

So what does that mean? 那是什么意思呢? Must I remove the 64 bit support and will my app then run slower on a 5S? 我是否必须取消对64位的支持,然后我的应用才能在5S上运行得更慢? Or is there another way to ship bith 32 and 64 bit and still support iPad 1? 还是有另一种方式来运送32位和64位的bith并仍支持iPad 1?

在此处输入图片说明

The short answer is, you can't. 简短的答案是,你不能。

Unfortunately 32/64 bit "fat" applications will only run on iOS 6 (I think it may even be 6.1) Previous iOS versions don't know how to read the fat binary file format. 不幸的是32/64位“胖”应用程序只能在iOS 6上运行(我认为它甚至可能是6.1)。以前的iOS版本不知道如何读取胖二进制文件格式。

We went through this when we had to release an update to our free app, Face Dancer . 当我们不得不发布免费应用程序Face Dancer的更新时,我们经历了这一过程。 It uses face detection, and face detection is broken for 32 bit apps on the iPhone 5s and iPad air. 它使用人脸检测,iPhone 5s和iPad air上的32位应用程序的人脸检测功能被破坏。

The previous version in the app store worked on iOS 5 and up, but we had to drop iOS 5 support in order to make a 32/64 bit build. App Store中的先前版本可在iOS 5及更高版本上运行,但我们必须放弃对iOS 5的支持才能构建32/64位版本。

By the way, most apps don't need to care about 64 bit code. 顺便说一句,大多数应用程序不需要关心64位代码。 It's only if you're doing heavy number-crunching or heavy-duty graphics (which amounts to the same thing) that you'll notice any difference at all. 只有在进行大量的数字处理或繁重的图形处理(等同于同一件事)时,您才会注意到所有差异。

Set deployment target to 6.0 while you profile. 进行概要分析时,将部署目标设置为6.0。 Be sure to reset it before submitting to AppStore. 提交给AppStore之前,请确保将其重置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM