Can you set architecture specific Build Settings in an .xcconfig file in Xcode 4.3?

▼魔方 西西 提交于 2020-01-31 12:32:20

问题


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?


回答1:


Yes, you can do that.

SETTING_NAME[arch=arch_name] = some_value

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.

To solve your particular problem:

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


来源:https://stackoverflow.com/questions/9731541/can-you-set-architecture-specific-build-settings-in-an-xcconfig-file-in-xcode-4

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!