如何停止为 64 位构建 xcode5.1 [英] how to stop xcode5.1 building for 64bit

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

问题描述

我刚刚更新到 xcode 5.1 - 苹果决定让所有应用程序默认编译为 64 位 - 我的应用程序有一些遗留代码,我花了最后几个小时弄清楚如何停止 64 位的 Xcode 构建.认为这可能会帮助有同样问题的人...

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. 选择其他
  2. 删除(按-")$(ARCH_STANDARD)
  3. 添加(按+")armv7
  4. 添加(按+")armv7s
  5. 清理和构建

推荐答案

OP 与问题本身一起发布了解决方案.但我觉得将其添加为答案会更好.在 Xcode 5.1 中,apple 对 architecture 部分进行了重大更改.他们将 arm64 作为标准架构的一部分.这意味着使用默认设置的项目也将自动为 arm64 构建.那么如果您的应用不支持 arm64,您会怎么做?.

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?.

医生说:

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

Projects not able to support 64-bit need to specifically set the architectures build setting to not include 64-bit.

怎么做?

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

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

双击架构会弹出一个菜单.选择其他

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

删除现有行 - $(ARCH_STANDARD).将需要的架构一一添加

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

现在您的架构部分将如下所示

Now your architecture section will look like this

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

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