Search code examples
xcodepathrelative-path

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


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


Solution

  • 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.