XCode 4 Relative #include paths in search?

后端 未结 1 1249
走了就别回头了
走了就别回头了 2021-02-15 09:41

I\'m trying to port over a project I initially wrote in Windows to OS X and am having some difficulty with the header search paths.

I\'ve used user search paths to inclu

1条回答
  •  礼貌的吻别
    2021-02-15 10:42

    Did you try setting the User Header Search Path to $SRCROOT/..? $SRCROOT is the directory that contains the target's source files, so $SRCROOT/.. should be the directory above that, which I think is what you want.

    A related question (How do I print a list of "Build Settings" in Xcode project?) shows a useful command that makes it easy to see all the build settings and the variables they modify:

    $ xcodebuild -project myProj.xcodeproj -target "myTarg" -showBuildSettings
    

    0 讨论(0)
提交回复
热议问题