How do I use a relative path in Xcode project settings?

后端 未结 6 1939
慢半拍i
慢半拍i 2021-01-30 10:24

How do I use a relative path in Xcode project settings?

6条回答
  •  余生分开走
    2021-01-30 11:00

    All paths in Build Settings are assumed relative to the directory that contains the .xcodeproj file. Use the standard Unix path tokens

    .   project directory
    ..  parent directory
    

    So if your project file is trunk/Mac/proj.xcodeproj, and your headers are in trunk/Headers/foo.h, you would add ../Headers to your Header Search Paths.

提交回复
热议问题