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

Shay picture Shay · Sep 13, 2009 · Viewed 54.3k times · Source

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

Answer

cdespinosa picture cdespinosa · Sep 13, 2009

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.