Xcode -- what is $(SRCROOT)?

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?

106781 次浏览

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

SRCROOT

$(SRCROOT)(aka $(SOURCE_ROOT)) is a path to your location where a.xcodeproj is.

It is simple to check, just put it in a field and Xcode gives you a tip

enter image description here