title: iOS: Absolute project path with xcodebuild
body: <p>I use following command to build project using <code>xcodebuild</code> from the directory where .xcodeproj is.</p>
  
  <pre><code>admin$ xcodebuild install DSTROOT=. INSTALL_PATH=/bin
  </code></pre>
  
  <p>Could someone please tell me how to specify full path of .xcodeproj in <code>xcodebuild</code> command and run it from anywhere?</p>
  
  <p>[EDIT]</p>
  
  <p>...so you cannot specify absolute path of the project with xcodebuild command but you can specify where do you want your .app file placed like following. You need to run this command from the root project directory and you will be able to compile other sub projects without CD to their directories but you need to specify "scheme" that you are building.</p>
  
  <pre><code>admin$ xcodebuild install DSTROOT=/Users/admin/myProjectRoot INSTALL_PATH=/bin -scheme MySubProject1 -configuration Release -sdk iphonesimulator clean build
  </code></pre>