Xcode工程

打開舊工程時,報錯:

error: -fobjc-arc is not supported on platforms using the legacy runtime

Command /Applications/Xcode 2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1


解決方案:

1.點擊工程名—>build settings  

2.找到objective-C Automatic Reference Counting,選擇其選項爲NO


原因:創建該工程時默認使用開啓了ARC


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章