Xcode -- what is $(SRCROOT)?

XcodePath

Xcode Problem Overview


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?

Xcode Solutions


Solution 1 - Xcode

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

Solution 2 - Xcode

Solution 3 - Xcode

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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionWilliam JockuschView Question on Stackoverflow
Solution 1 - XcodemipadiView Answer on Stackoverflow
Solution 2 - XcodeJurgisView Answer on Stackoverflow
Solution 3 - XcodeyoAlex5View Answer on Stackoverflow