How to add a global include path for xcode

前端 未结 5 1058
感情败类
感情败类 2020-12-08 21:53

I\'d like to add ~/include to my include path for all projects while using Xcode, something like setting the environment variable CPLUS_INCLUDE_PATH in

5条回答
  •  一个人的身影
    2020-12-08 22:24

    Add the HEADER_SEARCH_PATHS build setting to your Xcode project. This setting takes a space separated list of paths and if the path ends in a double star (**), it will search subdirectories recursively. So to answer for your example, set HEADER_SEARCH_PATHS to:

    ~/include
    

    If you had a number of paths to include, you would set it to something like:

    ~/include ~/my_other_includes/** /usr/local/special_frameworks/**
    

提交回复
热议问题