title: Xcode fails with "Code Signing" Error
body: <h1>Alternate Titles</h1>
  <p>(to aid search)</p>
  <ul>
  <li>Xcode 'CodeSign error: code signing is required'</li>
  <li>Xcode: iPhone app codesign error</li>
  <li>/usr/bin/codesign failed with exit code 1</li>
  <li>Jenkins fails with Code Sign error</li>
  <li>Command-line build fails with &quot;provisioning profiles not found&quot;</li>
  <li>Archiving Xcode project fails with provisioning error</li>
  <li>Missing signing certificates in Xcode</li>
  </ul>
  <h1>Symptoms</h1>
  <p>The issue manifests it's self in one of several ways:</p>
  <ul>
  <li><p>Running your app on a device results in an error referencing &quot;code signing&quot; or &quot;expired signing certificates&quot;</p>
  </li>
  <li><p>Building from the command line (or using a continuos integration system, such as <a href="http://jenkins-ci.org" rel="noreferrer">Jenkins</a>)   fails with a error similar to this:</p>
  <pre><code>  Check dependencies
    Code Sign error: No unexpired provisioning profiles found that contain any of the keychain's signing certificates
  </code></pre>
  </li>
  <li><p>Archiving an app fails with &quot;code signing&quot; or &quot;expired signing certificates&quot; where a run or build work correctly.</p>
  </li>
  </ul>
  <p>Often the project may have several configurations and sometimes only a subset will fail. Deleting and regenerating provisioning profiles has no effect.</p>