Using the HTTPRiot Framework in your iPhone Applications

HTTPRiot comes with a simple SDK package that makes it very easy to get up and running quickly on the iphone. You'll need to put this SDK package somewhere where it won't get deleted and you can share it with all your iPhone projects.

NOTE: Make sure you select "All Configurations" in the Build tab before changing any settings.

  1. Move the httpriot-* directory to ~/Library/SDKs. You might need to create this directory. It's not mandatory that it lives in this location, but it's a good idea that you put it somewhere where it can be shared.
  2. Create a new project or open an existing project in XCode. Select your application's target and press ⌘i to bring up the properties window. Set the Additional SDKs property to ~/Library/SDKs/httpriot-0.6.10/$(PLATFORM_NAME)$(IPHONEOS_DEPLOYMENT_TARGET).sdk
    additional-sdks.png
  3. Set the Other Linker Flags to -lhttpriot -lxml2 -ObjC -all_load
    other-linker-flags.png
  4. Set Header Search Paths to /usr/include/libxml2/**
  5. If building for the iPad or iPhone 4 OS you'll need to set 'Architectures' to "Optimized" or "arm6,arm7"
  6. Use #include <HTTPRiot/HTTPRiot.h> in one of your application's files. That's it! Now you're ready to use HTTPRiot!