如何停止X code5.1建设64 [英] how to stop xcode5.1 building for 64bit

查看:150
本文介绍了如何停止X code5.1建设64的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚更新到x code 5.1 - 苹果决定把所有的应用程序编译在默认情况下,以64位 - 我的应用程序有一些遗留的code和我花了几个小时搞清楚如何停止X code栋为64位。认为这可能会帮助人们同样的问题...

请参阅接受的答案更清晰的视觉散步以为

(我原来的基于文本的答案...)

在目标 - >构建设置 - >架构 - >架构

  1. 选择其他
  2. 删除(preSS - )$(ARCH_STANDARD)
  3. 添加(preSS'+')的ARMv7
  4. 添加(preSS'+')armv7s
  5. 清理并生成
解决方案

OP张贴随着问题本身的解决方案。但我觉得这将是更好地将其添加为一个答案。在 X code 5.1 苹果做显著改变建筑部分。他们让 arm64 标准架构的一部分。在使用默认设置会自动构建 arm64 也意味着该项目。因此, 你会做什么,如果你的应用程序不支持 arm64

医生说:

  

项目无法支持64位需要专门设置架构创建设置为不包括64位。

如何做到这一点?

  1. 转到目标 - >构建设置 - >架构 - >架构

  2. 双击该架构将弹出一个菜单。选择其他

  3. 删除现有行 - $(ARCH_STANDARD)。添加所需的架构逐一

  4. 现在你的架构部分看起来像这样

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

  1. select other
  2. delete (press '-') $(ARCH_STANDARD)
  3. add (press '+') armv7
  4. add (press '+') armv7s
  5. 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?

  1. Goto Targets-->Build Settings-->Architectures-->Architectures

  2. Double click on the architecture will popup a menu. Choose others

  3. Delete the existing row - $(ARCH_STANDARD). Add the required architectures one by one

  4. Now your architecture section will look like this

这篇关于如何停止X code5.1建设64的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆