Procedure to use json-framework in XCode 4.2
1) Open or create your project
2) Open the SBJSON XCode project file “SBJson.xcodeproj
Now drag the SBJson application to you project. There seems to be a bug in the XCode I am using in that it does not display as shown below. Close the project and open it again and it will work.
Now strap it in.
Click on your project file
Click the Targets section
Click the Build Phases
Expand target Dependencies
Click the “+” to add a dependency
Choose “sbjson-ios” under the SBJson project
Now expand the “Link Binary with Libraries”, click + and add “libsbjson-ios.a”
That’s it. All done
9 Comments
Comments RSS TrackBack Identifier URI






The sbjson app won’t show as an app no matter how many times I close xcode and reopen it. Any ideas?
Nope, this seems to be a bug. I even created a new project once to overcome it
HTH
Des
OK… after i do this and remove just my class files, I get an error in my import statement:
#import “SBJsonParser.h”
“file not found”. How do i go about importing the library into a single .m file?
Nevermind. Got the answer here: http://stackoverflow.com/questions/5543854/xcode-4-cant-locate-public-header-files-from-static-library-dependancy
Just had to drag the headers into MY project and not link them to the target.
If you follow the logic detailed here:
https://github.com/RestKit/RestKit/wiki/Installing-RestKit-in-Xcode-4.x
then it will work OK.
[...] http://deshartman.wordpress.com/2011/09/02/configuring-sbjson-framework-for-xcode-4-2/ [...]
Excellent!
Adding JSON to my apps has always been too painful. Found this while looking for a better idea. Easy Peasy!
how to get the json object reference
Hi! I could have sworn I’ve been to this site before but after browsing through some of the post I realized it’s new
to me. Anyways, I’m definitely happy I found it and I’ll be book-marking and checking back often!