AFNetwork is a very useful network library that I am using it now. But if you turn on Automatic reference Counting, you will get a lot of compilation error.
To solve this problem, you need to add “-fno-objc-arc” to all the AFNetwork library during compilation time.
How to do it?
First Click on Project > Build Phases > Expand Compile Sources, double click on each AF(xxx).m file, and add in ”-fno-objc-arc” to compile flag. This will tell the xcode not to do arc on these library.