title: How do you reference the git repository root directory in Xcode build settings?
body: <p>How do you reference the git repository root directory in Xcode build settings?</p>
  
  <p>We have a project where our original source code comprises 39 modules (framework targets) spread around in various levels of subdirectories.</p>
  
  <p>In addition we keep certain modules like Crashlytics in the repository root in a folder called "ThirdPartyFrameworks" and then we have "Carthage" also at the repository root.</p>
  
  <p>Currently each framework references all third party dependencies through paths relative to each framework's project directory, e.g. <code>$(PROJECT_DIR)/../../../Carthage/Build/iOS</code> etc. However, if you want to reorganize the project, and move a project to a new spot, then all these kinds of links will break, since they're relative.</p>
  
  <p>What I would greatly prefer to do is just have one shared config file that references these framework search paths like: <code>$(GIT_ROOT)/Carthage</code> and be done with it. However I don't see any way to reference the repo root or workspace root that way. </p>
  
  <p>Does anyone know a way to do this...? Thanks.</p>