XCode中,为单个文件设置编译选项(Compiler Flags)

来源:互联网 发布:淘宝抽成多少 编辑:程序博客网 时间:2024/05/06 00:16

When you migrate a project to use ARC, the -fobjc-arc compiler flag is set as the default for all Objective-C source files. You can disable ARC for a specific class using the -fno-objc-arc compiler flag for that class. 


In Xcode, in the target Build Phases tab, open the Compile Sources group to reveal the source file list. Double-click the file for which you want to set the flag, enter -fno-objc-arc in the pop-up panel, then click Done.




转自:

http://stackoverflow.com/questions/9018366/how-to-enable-disable-arc-in-an-xcode-project

0 0