开发者

How to target specific arch during iphone universal(arm6/arm7) build

开发者 https://www.devze.com 2023-01-09 00:02 出处:网络
Im trying to define different ld and c flags for different arch. im using this.. OTHER_CFLAGS[sdk=iphoneos*][arch=arm6] = blabla

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消