Can you batch change per-file compiler flags in Xcode 4?

纵饮孤独 提交于 2019-12-05 18:06:58

问题


I'd like to be able to change compiler flags for a whole set of files.

When accessing per-file compiler flags from the "Build Phases" area you can change flags one at a time, however say I'd like to change the flags for every file in a group (e.g., the DropBox or Facebook SDK).

Anyone know how to do this in Xcode 4.0.x?


回答1:


Fortunately, YES :-)

In Targets->Build Phaes->Compile Sources, mark all the files you like to set a compiler flag for, press RETURN (hit the enter key!), put the flag in the upcoming window and you're done!



来源:https://stackoverflow.com/questions/5768855/can-you-batch-change-per-file-compiler-flags-in-xcode-4

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