ASIHTTPRequest and ARC

Oct 9, 2012   #objective-c  #osx  #arc 

I wanted to use ASIHTTPRequest in one of my OS X projects. My project is ARC enabled. ASIHTTPRequest does not support ARC. One solution would be to add all the .h and .m files from ASIHTTPRequest to your project and set the -fno-objc-arc flag for each .m file.

I created a static library for ASIHTTPRequest and only added the .h files to my project instead. Then I also added the static library and made sure Xcode links against it in the linking phase of the build.

Here is the static library for you to use in your own projects.