美文网首页iOS学习开发
xxx.h file not found

xxx.h file not found

作者: tesla1984 | 来源:发表于2016-11-15 10:44 被阅读0次

项目需要使用第三方库,将第三方库文件夹拖入到xcode中,提示xxx.h file not found。最后发现是拖进来的时候Added folders需选错了,如下图

  • Create groups 给添加的文件创建一个组groups
  • Create folder references给添加的文件创建一个文件夹folder
Paste_Image.png

两者的区别

  • 前者的文件夹是黄色的;后者的文件夹是蓝色的
  • 如果有一个info.h文件需要引用:前者直接导入import "info.h"就可能使用;后者你需要import "文件夹名字/info.h"才可能使用,否则编译时找不到文件info.h
Paste_Image.png

相关文章

网友评论

    本文标题:xxx.h file not found

    本文链接:https://www.haomeiwen.com/subject/dovkpttx.html