How to tell Xcode how to include a library specified with angle brackets?

前端 未结 2 1606
小鲜肉
小鲜肉 2021-02-18 14:21

I often see open source code importing third-party libraries in Xcode / Objective-C implementation files like this:

#import          


        
相关标签:
2条回答
  • 2021-02-18 15:04

    Just stumbled upon the same issue, there are two types of search paths in Xcode:

    Header Search Paths
    User Header Search Paths
    

    If you add your own include folders into Header Search Paths, you can use angled brackets.

    0 讨论(0)
  • 2021-02-18 15:24

    Specify the include path using the compiler flag -I, or the Xcode build settings alias HEADER_SEARCH_PATHS. Of course, you can use build variables when doing so.

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