title: Jenkins building Xcode - getting build error "permission denied"
body: <p>I'm trying to get a phonegap project building on our Jenkins build server and I'm getting a permission denied error. Keep in mind, this is my first experience with Mac OS X.</p>
  
  <p>The build output in Jenkins is telling me this:</p>
  
  <pre><code>    /bin/sh -c \"/Users/Shared/Jenkins/Home/jobs/myMobile\ -\ iOS/workspace/build/TDE.build/Release-iphoneos/TDE.build/Script-304B58A110DAC018002A0835.sh\"
  /Users/Shared/Jenkins/Home/jobs/myMobile - iOS/workspace/build/TDE.build/Release-iphoneos/TDE.build/Script-304B58A110DAC018002A0835.sh: line 2: cordova/lib/copy-www-build-step.sh: Permission denied
  
  ** BUILD FAILED **
  
  
  The following build commands failed:
      PhaseScriptExecution Copy\ www\ directory build/TDE.build/Release-iphoneos/TDE.build/Script-304B58A110DAC018002A0835.sh
  (1 failure)
  Build step 'XCode' marked build as failure
  Finished: FAILURE
  </code></pre>
  
  <p>Googling this, I found a <a href="https://stackoverflow.com/questions/9850936/what-permissions-are-required-for-run-script-during-a-build-phase">SO post</a> saying to run the chmod 755 command on this .sh file, but that still didn't fix anything. What else should I be doing to get this file to be able to execute/copy or whatever it's doing?</p>
  
  <p>Edit: Is my actual permission issue for this file:</p>
  
  <pre><code>line 2: cordova/lib/copy-www-build-step.sh: Permission denied
  </code></pre>
  
  <p>Or is it the Script-.... file?</p>