JSON.h:尝试导入JSON框架时找不到文件 [英] JSON.h : File not found when trying to import the JSON framework

查看:990
本文介绍了JSON.h:尝试导入JSON框架时找不到文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我构建时,我收到了这个错误:

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框架时找不到文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆