Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
stig committed Jan 17, 2014
1 parent 0a60393 commit e1c770c
Showing 1 changed file with 11 additions and 22 deletions.
33 changes: 11 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,33 +32,22 @@ Links
Installation
============

The simplest way to start using JSON in your application is to copy all
the source files (the contents of the `src/main/objc` folder) into your own
Xcode project.
The preferred way to use SBJson is by using
[CocoaPods](http://cocoapods.org/?q=sbjson). *Note that there are 2 specs for
version 4.* In your Podfile use:

1. In the Finder, navigate into the `src/main/objc` folder.
2. Select all the files and drag-and-drop them into your Xcode project.
3. Tick the **Copy items into destination group's folder** option.
4. Use `#import "SBJson.h"` in your source files.

That should be it. Now create that Twitter client!

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

If you depend on a third-party library that requires an earlier version of
SBJson, or want to install both version 3 and 4 in the same app to do a gradual
transition you can instead use:

Alternative Installation Instructions
=====================================
pod 'SBJson4', '~> 4.0.0'

* 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][link-ios]. This is the recommended way if you need to
make local changes to SBJson.
* You can also install SBJson using [CocoaPods](http://cocoapods.org).

[link-ios]: http://deshartman.wordpress.com/2011/09/02/configuring-sbjson-framework-for-xcode-4-2/
An alternative (that I no longer recommend) is to copy all the source files (the
contents of the `src/main/objc` folder) into your own Xcode project.

That should be it. Now create that Twitter client!

License
=======
Expand Down

0 comments on commit e1c770c

Please sign in to comment.