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

前端 未结 1 784
不思量自难忘°
不思量自难忘° 2021-01-16 00:10

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 folde

1条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-16 00:37

    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)

    0 讨论(0)
提交回复
热议问题