title: PBXCP: No such file or directory, in most recent xcode
body: <p>I have been modifying this open source code with Xcode 3.0 but as soon as I updated my Xcode to 4.0+ and tryed running it it no longer worked. The first error I ran into was this </p>
  
  <pre><code>/Users/newperson/Library/Developer/Xcode/DerivedData/Hellcraft-etesgjzdmfzimlgvakidckjecgij/Build    
  /Intermediates/Hellcraft.build/Debug-iphonesimulator/Doom.build/Script-
  435F41A90F532CA300887552.sh: line 3: /Applications/Xcode.app/Contents/Developer/Libra/PrivateFrameworks    
  /DevToolsCore.framework/Resources/pbxcp: No such file or directory
  </code></pre>
  
  <p>I figured it had something to do with the Run Script under build phases, which is set as this:</p>
  
  <pre><code>/bin/sh -x
  
  PBXCP=${DEVELOPER_DIR}/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp
  ${PBXCP} -exclude .svn "${PROJECT_DIR}/../../base" 
  "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/"
  </code></pre>
  
  <p>But after looking online and modifying the shell script countless amount of times I have not been able to find a solution.
  I found somewhere that pbxcp has been removed in the more recent versions of Xcode, but I am unable to find a suitable replacement, and am unable to incorporate that DevToolsCore into the new version of Xcode.</p>
  
  <p>After finding a forum that said I should run an alternative script in order to makeup for the missing pbxcp file I tryed running this:</p>
  
  <pre><code>/usr/bin/tar -c -C "${PROJECT_DIR}/myframeworks" --exclude .DS_Store --exclude CVS --exclude 
  .svn --exclude .git -H `cd "${PROJECT_DIR}/myframeworks" &amp;&amp; find DevToolsCore.framework` | 
  /usr/bin/tar -x -C ${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}
  </code></pre>
  
  <p>I created a file called myframeworks in the project directory and added DevToolsCore.framework to it, although this fixed the missing pbxcp problem it generated another error:</p>
  
  <pre><code>tar: could not chdir to '/Users/newperson/Library/Developer/Xcode/DerivedData/Hellcraft-
  etesgjzdmfzimlgvakidckjecgij/Build/Products/Debug-iphonesimulator/Doom.app/Frameworks'
  
  tar: Write error
  Command /bin/sh failed with exit code 1
  </code></pre>
  
  <p>If anyone has any advice it would be great, I'm pulling my hair out.</p>