问题描述
当我构建时,我收到了这个错误:
When i build i got that error:
JSON.h : File not found
明显的假设让我觉得JSON.h文件不在导入我项目的框架文件夹中,是的,它不存在使用该名词,但有一个名为 SBJson.h
的文件。
我跟着。
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.
推荐答案
从项目中删除JSON文件夹,然后重新添加它。
Remove the JSON folder from your project and then re-add it.
重新添加时,请确保选中为任何添加的文件夹创建组单选按钮。如果选择了另一个Create folder referenes ...按钮,它将只创建一个文件夹引用,Xcode将不知道该文件夹的内容(即Xcode不会看到JSON.h)。
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)
这篇关于JSON.h:尝试导入JSON框架时找不到文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!