search

Home  >  Q&A  >  body text

ios - #import <xx/xx.h> file not found

同一份代码,在同事的代码上可以正常编译,到我mac上面就成了有些文件file not found,看了路径设置的地方,

framework search paths,header search paths,library search paths,写的路径是相对路径不是绝对路径,

framework search paths
$(inherited) -- non recursive
$(SRCROOT) -- non recursive

header search paths
./include -- recursive
. -- recursive
./(SRCROOT)/xx/xx/xx/ -- recursive

library search paths
$(inherited) -- non recursive
$(SRCROOT) -- recursive

有大神帮忙看看,上面设置的地方是不是有什么没设置上去的,或者设置错误的。

高洛峰高洛峰2918 days ago929

reply all(2)I'll reply

  • 阿神

    阿神2017-04-18 09:39:13

    Check to see if your colleague’s code file has not been copied to the project.

    reply
    0
  • ringa_lee

    ringa_lee2017-04-18 09:39:13

    Re-add the folder where the missing files are located to the project. When adding files, you need to check the first and second options. Do not use dragging to add files, because if you use dragging to drag files to the project This will cause this problem to persist unless you are lucky enough to add the relevant path to the project.

    reply
    0
  • Cancelreply