打開舊工程時,報錯:
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