Files doesn't support the ARC feature, how to deal with

前端 未结 2 1681
暖寄归人
暖寄归人 2020-12-17 01:00

My project uses the ARC(Automatic Reference Counter), so when i try to import the ASIHTTPRequest library which has 4 classes that used in their implementation the autoreleas

2条回答
  •  醉梦人生
    2020-12-17 01:32

    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.

提交回复
热议问题