Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (23 sloc) 1.18 kb

Installation

The simplest way to start using JSON in your application is to copy all the source files (the contents of the Classes folder) into your own Xcode project.

  1. In the Finder, navigate to the distribution's folder
  2. Navigate into the Classes folder.
  3. Select all the files and drag-and-drop them into your Xcode project.
  4. Tick the Copy items into destination group's folder option.
  5. Use #import "SBJson.h" in your source files.

That should be it. Now create that Twitter client!

Upgrading

If you're upgrading from a previous version, make sure you're deleting the old SBJson classes first, moving all the files to Trash.

Linking rather than copying

Copying the SBJson classes into your project isn't the only way to use this framework. With Xcode 4's workspaces it has become much simpler to link to dependant projects. The examples in the distribution link to the iOS library and Mac framework, respectively. Des Hartman wrote a blog post with step-by-step instructions for iOS.

Jump to Line
Something went wrong with that request. Please try again.