如何停止X code5.1建设64 [英] how to stop xcode5.1 building for 64bit
问题描述
我刚刚更新到x code 5.1 - 苹果决定把所有的应用程序编译在默认情况下,以64位 - 我的应用程序有一些遗留的code和我花了几个小时搞清楚如何停止X code栋为64位。认为这可能会帮助人们同样的问题...
请参阅接受的答案更清晰的视觉散步以为
(我原来的基于文本的答案...)
在目标 - >构建设置 - >架构 - >架构
- 选择其他
- 删除(preSS - )$(ARCH_STANDARD)
- 添加(preSS'+')的ARMv7
- 添加(preSS'+')armv7s
- 清理并生成
OP张贴随着问题本身的解决方案。但我觉得这将是更好地将其添加为一个答案。在 X code 5.1
苹果做显著改变建筑
部分。他们让 arm64
为 标准架构的的一部分。在使用默认设置会自动构建 arm64
也意味着该项目。因此, 你会做什么,如果你的应用程序不支持 arm64
?的。
医生说:
项目无法支持64位需要专门设置架构创建设置为不包括64位。
如何做到这一点?
-
转到目标 - >构建设置 - >架构 - >架构
-
双击该架构将弹出一个菜单。选择其他
-
删除现有行 - $(ARCH_STANDARD)。添加所需的架构逐一
-
现在你的架构部分看起来像这样
I just updated to xcode 5.1 - apple decided to make all apps compile to 64bit by default - My app has some legacy code and I spent the last couple of hours figuring out how to STOP Xcode building for 64bit. Thought this might help people with the same problem...
See the accepted answer for a clearer visual walk thought
(my original text based answer...)
In Targets-->Build Settings-->Architectures-->Architectures
- select other
- delete (press '-') $(ARCH_STANDARD)
- add (press '+') armv7
- add (press '+') armv7s
- clean and build
OP is posted the solution along with the question itself. But I feel it would be better to add it as an answer. In Xcode 5.1
apple made significant changes to the architecture
section. They made arm64
as part of Standard architectures. That means the projects using the default setting will be automatically build for arm64
also. So what you will do if your app does not support arm64
?.
Doc says:
Projects not able to support 64-bit need to specifically set the architectures build setting to not include 64-bit.
How to do that?
Goto Targets-->Build Settings-->Architectures-->Architectures
Double click on the architecture will popup a menu. Choose others
Delete the existing row - $(ARCH_STANDARD). Add the required architectures one by one
Now your architecture section will look like this
这篇关于如何停止X code5.1建设64的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!