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

六月ゝ 毕业季﹏ 提交于 2019-12-01 11:33:57

问题


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.


回答1:


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).

And the resulting folder should look like this:

(note the yellow color of the folder, indicating the "folder" is really a group)

来源:https://stackoverflow.com/questions/8636011/json-h-file-not-found-when-trying-to-import-the-json-framework

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!