Malloc
Malloc

Reputation: 16276

JSON.h : File not found when trying to import the JSON framework

When i build i got that error:

JSON.h : File not found

Obvious assumptions make me think that the JSON.h file is not in the framework folder imported into my project, yes, it doesn't exist with that noun but there is a file named SBJson.h. I have followed this step by step tutorial around.

Upvotes: 1

Views: 8781

Answers (1)

Michael Dautermann
Michael Dautermann

Reputation: 89509

Remove the JSON folder from your project and then re-add it.

When you re-add it, make sure the "Create groups for any added folders" radio button is checked. If the other "Create folder referenes..." button is selected, it will only create a folder reference and Xcode won't know about the contents of that folder (i.e. Xcode won't "see" JSON.h).

select the correct folder option

And the resulting folder should look like this:

JSON.h should be resolvable by Xcode (note the yellow color of the folder, indicating the "folder" is really a group)

Upvotes: 6

Related Questions