Can you set architecture specific Build Settings i

2019-03-29 18:45发布

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?

GCC_THUMB_SUPPORT Settings in Xcode

1条回答
来,给爷笑一个
2楼-- · 2019-03-29 19:29

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
查看更多
登录 后发表回答