Using ASIHTTPRequest on the iPhone

February 15th, 2009

ASIHTTPRequest is a great wrapper around HTTP requests on OS X which also supports the iPhone API. If you want to use it on the iPhone you need a Framework, that is usually part of CoreServices on OSX. CoreServices is not available in the iPhone API though. What you need to do is adding the “CFNetwork.framework” to your iPhone project in Xcode or ou will run into errors when linking the project. The framework is usually located here (iPhone SDK version can change, obviously):

/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.2.1.sdk/System/Library/Frameworks/CFNetwork.framework

Leave a Reply