title: xcodebuild - 'Code Sign error: Provisioning profile X can't be found'
body: <p>Yet another code sign error.</p>
  
  <p>I'm running command:</p>
  
  <pre><code>xcodebuild -project $DIR/myproject.xcodeproj -sdk iphoneos5.0 -alltargets
  </code></pre>
  
  <p>and my project.pbxproj</p>
  
  <pre><code>"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution: Ryan"
  "PROVISIONING_PROFILE[sdk=iphoneos*]" = "/Users/ryan/12345678-9012-3456-7890-123456789012.mobileprovision";
  </code></pre>
  
  <p>with output</p>
  
  <pre><code>=== BUILD NATIVE TARGET myproject OF PROJECT myproject WITH THE DEFAULT CONFIGURATION (Release) ===
  Check dependencies
  [BEROR]Code Sign error: Provisioning profile '/Users/ryan/12345678-9012-3456-7890-123456789012.mobileprovision' can't be found
  </code></pre>
  
  <p>I can't find any guidance on how to do this. Ive tried putting the provision in ~/Library/MobileDevice/Provisioning Profiles and setting the profile field in project.pbxproj to just the profile ID</p>
  
  <p>It is a requirement that I need to be configure this at the command line w/o Jenkins/Hudson</p>