title: How to get xcode derived data path
body: <p>Is there a way I can retrieve through some bash command the path to the Xcode DerivedData folder?</p>
  
  <p>usually it is something like</p>
  
  <pre><code>/Users/ThisGuy/Library/Developer/Xcode/DerivedData/*
  </code></pre>
  
  <p>and I can replace it with</p>
  
  <pre><code>/Users/$USER/Library/Developer/Xcode/DerivedData/*
  </code></pre>
  
  <p>but this doesn't guarantee that the path to the derived data location is actually this one (the user may have changed it to a relative or a custom one)</p>