User Header Search Paths for Xcode

后端 未结 4 1497
余生分开走
余生分开走 2021-02-02 10:22

I have two paths that I want Xcode to search for headers:

\"/myproject/lib1/include\"
\"/myproject/lib2/include\"

What\'s th

4条回答
  •  借酒劲吻你
    2021-02-02 11:06

    Dd you actually put the leading /into the path? Because that's an absolute path and probably not what you mean.

    You can pass it the relative location using $(SRCROOT) which expands the the directory containing the Xcode project file.

    So, assuming your project file is in the myroject directory you should put this in your header search paths:

    $(SRCROOT)/lib1/include
    $(SRCROOT)/lib2/include
    

提交回复
热议问题