Question

I'm getting an error when I run any project with the JSON-Framework installed:

Xcode could not locate source file: NSString+SBJSON.m (line: 50)

I assumed this means it can't find the sdk, the strange this is that the project builds and runs up until I make my first JSON call:

NSArray *data = [responseString JSONValue];

The JSON folder is in: ~/Library/SDKs

I added the additional sdks argument: $HOME/Library/SDKs/JSON/$(PLATFORM_NAME).sdk

I also added the linker flags: -ObjC -ljson

To make sure I wasn't crazy, I ran a tutorial here. This tutorial also gets the same error. (I also ran one from mobile orchard with similar results, except for the file: SBJSON.m)

I must have set something up wrong, any ideas?

Was it helpful?

Solution

As stated in the above comments, I just added the source code directly. Not the ideal solution, but it worked.

I'm sure installation will get better...

OTHER TIPS

You might want to get info on your file and make sure the path type is set to "Relative to Project". This resolved my issue.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top