XCode中,爲單個文件設置編譯選項(Compiler Flags)

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

發佈了105 篇原創文章 · 獲贊 19 · 訪問量 41萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章