Xcode 5头文件没有找到?

时间:2023-01-13 20:23:41

I'm new to iOS development, and downloaded a sample project to play with.

我是iOS开发的新手,下载了一个示例项目。

The project itself required a the GMGridView library which was NOT included with the download.

项目本身需要一个GMGridView库,该库不包含在下载中。

So i downloaded the library separately, added the reference ".xcodeproj" to it and crossed my finger and prayed that it'll work.

所以我分别下载了图书馆,增加了参考书目。xcodeproj"对它祈祷,祈祷它能起作用。

Obviously it didn't, that's why i'm here.

显然不是,这就是我来这里的原因。

The error i keep getting is this GMGridView/GMGridView.h file not found.

我一直得到的错误是GMGridView/GMGridView。h文件未找到。

The file header IS there,

文件头在那里,

Things that I tried before screaming for help:

我在尖叫寻求帮助之前尝试过的事情:

  • added "GMGridView.xcodeproj" in "BuildPhase" -> "Target Dependencies" of Z-way project.
  • “GMGridView补充道。在“构建阶段”->“Z-way项目”中的“目标依赖关系”。
  • ensured the Search Path has GMGridView, i set it to recursive, as well as tried both relative and absolute path. no luck.
  • 确保搜索路径有GMGridView,我将其设置为递归,并尝试了相对和绝对路径。没有运气。

What else could be the reason, I'm totally stumped?

还有什么原因,我完全被难住了?

Xcode 5头文件没有找到?

3 个解决方案

#1


2  

Another possible cause:

另一个可能的原因:

Make sure you don't have a duplicated header (that is hidden somewhere in the folder) that has a wrong path(missing to xcode).

确保没有重复的头(隐藏在文件夹中的某个地方),它有错误的路径(缺少xcode)。

#2


2  

"Always Search User Path" in Build Setting - Set it to "Yes".

在构建设置中“始终搜索用户路径”——设置为“Yes”。

Also Try with

也试着

"Target Dependencies" in Build Phases - Add your dependent project here.

构建阶段的“目标依赖”——在这里添加您的依赖项目。

#3


0  

What about under Build Phases -> Link Binary with Libraries -> + ??? try to see if you can find it there..

在构建阶段——>与库的链接——> + ???试着看看你能不能在那里找到它。

#1


2  

Another possible cause:

另一个可能的原因:

Make sure you don't have a duplicated header (that is hidden somewhere in the folder) that has a wrong path(missing to xcode).

确保没有重复的头(隐藏在文件夹中的某个地方),它有错误的路径(缺少xcode)。

#2


2  

"Always Search User Path" in Build Setting - Set it to "Yes".

在构建设置中“始终搜索用户路径”——设置为“Yes”。

Also Try with

也试着

"Target Dependencies" in Build Phases - Add your dependent project here.

构建阶段的“目标依赖”——在这里添加您的依赖项目。

#3


0  

What about under Build Phases -> Link Binary with Libraries -> + ??? try to see if you can find it there..

在构建阶段——>与库的链接——> + ???试着看看你能不能在那里找到它。