William Jockusch
William Jockusch

Reputation: 27335

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?

Upvotes: 135

Views: 116767

Answers (3)

yoAlex5
yoAlex5

Reputation: 34341

Xcode SRCROOT

<select_project> -> <select_target> -> Build Settings -> All -> <find_SRCROOT> -> <double_click_by_right_side> -> <click_plus>

$(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

Upvotes: 18

mipadi
mipadi

Reputation: 411082

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

Upvotes: 164

Related Questions