title: xcodebuild code sign error provisioning profile even though all profiles are in correct folder
body: <p>I have a build server that checks out my xcode projects but there are a couple of issues. I need to build the app if the checkout occurs, but I'm not commiting the .xcworkspace file since more than one person works on the project.</p>
  
  <p>I'm running the following code in my terminal from the project's directory:</p>
  
  <pre><code>sudo xcodebuild -configuration Debug
  </code></pre>
  
  <p>It eventually fails with the error:</p>
  
  <pre><code>Code Sign error: Provisioning profile '7DXXX-XXXX-XXXX....' can't be found
  </code></pre>
  
  <p>I opened my directory at:</p>
  
  <pre><code>~/Library/MobileDevice/Provisioning\Profiles/
  </code></pre>
  
  <p>The profile is definitely there, the certificate is correct, and my debug build does not code sign.</p>
  
  <p>Any thoughts? Thank you.</p>