IOS ARC 和MRC 混编译的方法

I have got the solution, i needed to add the right flags to the compiler flags for each file which doesn’t support the ARC. For me, i use Xcode 4.2, so under target -> Build Phases -> Compile Sources, double click on the file you want to disable the ARC feature and put -fno-objc-arc the click on Done. And it’s Done ;)
Please note, that if the file doesn’t exist on the list, you can just add it by clicking the + button and then perform the same work above.

留下评论

发表评论

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据

%d 博主赞过: