您可以在 Xcode 4.3 的 .xcconfig 文件中设置特定于架构的构建设置吗? [英] Can you set architecture specific Build Settings in an .xcconfig file in Xcode 4.3?

查看:45
本文介绍了您可以在 Xcode 4.3 的 .xcconfig 文件中设置特定于架构的构建设置吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想设置特定于每个架构的构建设置(armv6 与 armv7).这很容易在 Xcode GUI 中完成,但我尝试将所有项目配置放在 .xcconfig 文件中.是否可以使用 .xcconfig 文件复制以下配置(为 armv7 启用 Thumb,但不适用于 armv6 架构)?

I want to set Build Settings that are specific to each architecture (armv6 vs armv7). This is easy enough to do in the Xcode GUI, but I try to put all project configuration in .xcconfig files. Is it possible to replicate the following configuration (Thumb enabled for armv7, but not armv6 architectures) using .xcconfig files?

推荐答案

是的,你可以这样做.

SETTING_NAME[arch=arch_name] = some_value

很难找到这方面的文档.显然它在 Xcode 3.0 发行说明,但祝您在 Apple 当前的文档中找到这些说明好运.

It's hard to find documentation on this. Apparently it was in the Xcode 3.0 release notes, but good luck finding those in Apple's current docs.

解决您的特定问题:

GCC_THUMB_SUPPORT[arch=armv6] = NO
GCC_THUMB_SUPPORT[arch=armv7] = YES

这篇关于您可以在 Xcode 4.3 的 .xcconfig 文件中设置特定于架构的构建设置吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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