Im trying to define different ld and c flags for different arch.
im using this..
OTHER_CFLAGS[sdk=iphoneos*][arch=arm6] = blabla
and whatever is set here doesnt make it into开发者_运维百科 the build.. even setting as arm7 doesnt make a difference.
Tested on both arm6 and arm7 devices.
BTW im using .xcconfigs for my project.
I know that you're using .xcconfigs, but if you want to do this within the build settings interface in Xcode, go to your build settings and select the particular option you want. Go to the menu at the bottom-left of the screen and choose the Add Build Setting Condition
option. In the new build setting condition, choose ARMv6 for the architecture, set what you want for that architecture, add another condition, choose ARMv7 for its architecture, and set what you want for the case of that architecture.
精彩评论