iOS: Clarify different Search Paths

前端 未结 2 1227
独厮守ぢ
独厮守ぢ 2021-01-30 07:34

There are three different search paths in XCode Build Settings:

  • Framework Search Path
  • Header Search Path
  • Library Search Path

Could

2条回答
  •  再見小時候
    2021-01-30 08:14

    These are used for searching for Frameworks, Header files, or Libraries that are not in the system search paths (like QTKit.Framework, standard C++ header files, etc).

    My most common use for this is using the boost header library (*.hpp) files in my code I add the relative path "../lib/Boost/1.46.1" to the Header Search Path.

    I find it better to add this at the project level instead of in each target. That way the targets inherit this and it only needs to be changed in one place if I update the version of boost.

提交回复
热议问题