Xcode 5和iOS 7:架构和有效架构 [英] Xcode 5 and iOS 7: Architecture and Valid architectures
问题描述
我正在Xcode 5中开始新项目。我想使用 iOS SDK 7
开发应用程序,但部署目标 iOS 5.0
。一旦我在Xcode中创建新项目并尝试将部署目标更改为5.0,我就收到此消息:
I'm starting new project in Xcode 5. I want to develop application using iOS SDK 7
but with deployment target iOS 5.0
. As soon as I create new project in Xcode and try to change deployment target to 5.0, I've got this message:
Applications including an arm64 slice are not compatible with versions of iOS
prior to 6.0
Adjust your Architectures build setting to not include arm64 in order to deploy
to releases prior to iOS 6.0.
所以将架构更改为标准
(无64位) )。我编译,运行,但我真的不明白刚刚发生了什么。
架构
和之间的区别有效架构$ Xcode项目构建设置中的c $ c>设置?
如果我设置架构
以排除64位当我在64位iPhone或iOS上运行我的应用程序时会发生什么模拟器(我知道它有效,我只是好奇下面有什么问题)?
你能用新的64位架构解释大混乱吗?
So changed architectures to Standard
(no 64bit). I compiles, runs but I do not really understand what just happend.
What's the difference between Architectures
and Valid architectures
settings in Xcode project Build Settings?
If I set Architectures
to exclude 64-bit what happens when I run my app on 64-bit iPhone or iOS Simulator (I know it works, I'm just curious what hapens underneath)?
Can you explain big mess with new 64-bit architecture?
推荐答案
将构建设置中的体系结构设置为 标准体系结构(armv7,armv7s)
Set the architecture in build setting to Standard architectures(armv7,armv7s)
iPhone 5S由A7 64位处理器供电。来自 apple docs
iPhone 5S is powered by A7 64bit processor. From apple docs
Xcode可以构建包含32位和64位二进制文件的应用程序。这个组合二进制文件需要iOS 7或更高版本的最低部署目标。
Xcode can build your app with both 32-bit and 64-bit binaries included. This combined binary requires a minimum deployment target of iOS 7 or later.
注意:Xcode的未来版本将允许您创建支持32位运行时的单个应用程序在iOS 6及更高版本上,它支持iOS 7上的64位运行时。
Note: A future version of Xcode will let you create a single app that supports the 32-bit runtime on iOS 6 and later, and that supports the 64-bit runtime on iOS 7.
从文档中我理解的是
- Xcode可以为单个应用程序创建64位32位二进制文件,但
部署目标应该是iOS7。他们说将来它将是
是iOS 6.0 - 32位二进制文件在iPhone 5S(64位处理器)中可以正常工作。
更新(Xcode 5.0.1)
在Xcode 5.0.1中,他们添加了为iOS创建64位二进制文件的支持5.1.1起。
Update (Xcode 5.0.1)
In Xcode 5.0.1 they added the support to create 64 bit binary for iOS 5.1.1 onwards.
Xcode 5.0.1可以构建包含32位和64位二进制文件的应用程序。此组合二进制文件需要iOS 5.1.1或更高版本的最低部署目标。 64位二进制文件仅在运行iOS 7.0.3及更高版本的64位设备上运行。
Xcode 5.0.1 can build your app with both 32-bit and 64-bit binaries included. This combined binary requires a minimum deployment target of iOS 5.1.1 or later. The 64-bit binary runs only on 64-bit devices running iOS 7.0.3 and later.
更新(Xcode 5.1) )
Xcode 5.1在架构部分做了重大改变。这个答案将是您的后续内容。
检查
Update (Xcode 5.1)
Xcode 5.1 made significant change in the architecture section. This answer will be a followup for you.
Check this
这篇关于Xcode 5和iOS 7:架构和有效架构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!