Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jinksys

macrumors newbie
Original poster
Dec 16, 2008
13
0
Saint Louis, Mo
I am trying to write a framework. In my project I am trying to use this framework:
http://code.google.com/p/json-framework/

but when I try to build my app I keep getting 'header not found' errors.
I'm importing <JSON/JSON.h> so I looked in there. There I saw

#import "SBJSON.h"

If I changed that to #import <JSON/SBJSON.h> (and the other headers statements), it worked. The developer says that I shouldn't need to do that and that it works 'out of the box'. So my question is, what is the proper way to include header files in a framework? I see a directory in his framework that says PrivateHeaders, but I can't find any information on that. Also, When I tell Xcode to include my headers in my framework, do I have to go in and manually change the import statements?
 
I am trying to write a framework. In my project I am trying to use this framework:
http://code.google.com/p/json-framework/

but when I try to build my app I keep getting 'header not found' errors.
I'm importing <JSON/JSON.h> so I looked in there. There I saw

#import "SBJSON.h"

If I changed that to #import <JSON/SBJSON.h> (and the other headers statements), it worked. The developer says that I shouldn't need to do that and that it works 'out of the box'. So my question is, what is the proper way to include header files in a framework? I see a directory in his framework that says PrivateHeaders, but I can't find any information on that. Also, When I tell Xcode to include my headers in my framework, do I have to go in and manually change the import statements?

FYI:
http://rentzsch.com/cocoa/embeddedFrameworks
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.