tags:

views:

15

answers:

1

I am looking at an Xcode project that uses some libraries. The project was created on a different computer, so I need to update some paths. The library search paths all start with $(SRCROOT). What does that mean?

A: 

It's the path to the directory containing the Xcode project.

mipadi
The weird thing is that when I view the paths in the build settings, they all start with /Users/stevew. When I double click to get the detail view for that setting, they instead all start with $(SRCRoot). But there is no /Users/stevew directory on my computer. So did it somehow get locked in to the location on the other computer?
William Jockusch
Probably somebody defined SRCROOT using an absolute path - it's usually a convenient root directory for all the source in your project, but it shouldn't be an absolute path unless you've only got one development machine.
Paul R
OK so how do I define it?
William Jockusch