ParseKit for iPhone OS Applications

Including ParseKit in your iPhone OS applications is easy. Follow the steps below.

    1. Check out the ParseKit sourcecode from Google Code.

      svn co https://parsekit.googlecode.com/svn/trunk/

    2. Open your iPhone app Xcode project. Drag the ParseKit.xcodeproj file from the finder and drop it at the top of the Groups & Files tree in your app’s Xcode project window. In the confirmation dialog that appears, click Add.
      step1a.png step1b.png
    3. Click and expand the disclosure triangle next to the blue ParseKit.xcodeproj icon to reveal all of the potential products of the ParseKit project.
      step2a.png
    4. Click and expand the disclosure triangle next to your app’s Target. Drag the parsekit.a product under ParseKit.xcodeproj to your Target’s Link Binary With Libraries build phase.
      step3a.png
    5. Double-click your Target (MyApp shown here) to edit it. In the General tab of the Target Info window, click the square + button below the Direct Dependencies list. In the sheet that appears, select ParseKitMobile and click Add Target.
      step4a.png

      You will now see the ParseKitMobile target appearing as a dependency under your app’s Target.

      step4b.png
  1. Next click the + button below the Linked Libraries list in the same window. Select libicucore.dylib and click Add. (This is for regular expression features in the PKPattern class.)
    step5a.png
  2. Under the Build tab of your app’s Target Info window, edit the Header Search Paths Setting to include the path to the include folder inside of the ParseKit folder you checked out. Make sure you edit this for All Configurations, not just the active one.
    step6a.png
  3. Finally, in the same window, edit the Other Linker Flags Setting to include the following flags: -ObjC -all_load. (This is needed for code in Objective-C categories in the ParseKit static library to execute successfully.)
    step7a.png
  4. Ship it!