Xcode 项目范围的编译器标志 [英] Xcode Project-Wide compiler flag

查看:36
本文介绍了Xcode 项目范围的编译器标志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 Xcode 4.2 和 LLVM 编译器,在为 ARMv6 编译时,生成的应用程序中存在一些非常奇怪的错误(例如 CGSize 的宽度"属性返回高度").为了解决这个问题,我发现我必须设置编译器标志 -mno-thumb.我知道如何逐个文件地设置编译器标志,但有没有办法为整个项目设置编译器标志?

With Xcode 4.2 and the LLVM compiler, when compiling for ARMv6 there are some very weird bugs in the generated application (such as "width" property of CGSize returning the "height" instead). To fix this, I found I must set the compiler flag -mno-thumb. I know how to set compiler flags on a file-by-file basis, but is there a way to set a compiler flag for the entire project?

推荐答案

您可以在构建设置"选项卡的语言"部分下的项目设置中设置项目范围的编译器标志.

You can set project wide compiler flags in the project settings under the "Language" section of the "Build Settings" tab.

这篇关于Xcode 项目范围的编译器标志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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