title: Xcode 11.2.1 - Command CodeSign failed with a nonzero exit code
body: <p>I'm working on a SFML app for macOS with the latest Xcode version.</p>
  <p>I got a <code>&quot;Command CodeSign failed with a nonzero exit code&quot;</code> error when it tries to sign the SFML frameworks. I added these under &quot;Link Binary with Libraries&quot; and &quot;Copy Files&quot; in Target, under Build Phases. Before, I was working with my local frameworks under <code>/Library/Frameworks</code>, and it was working very well.</p>
  <p>Now I need to create an archive <code>.app</code>.
  I've tried a lot of things seen on other posts here (like lock and unlock my keychains), but nothing worked. Still got that error.</p>
  <p>My SFML Frameworks in &quot;Link Binary with Libraries&quot;
  <img src="https://i.stack.imgur.com/4Xnqr.png" alt="&quot;Link Binary with Libraries&quot;" /></p>
  <blockquote>
  <p>/Users/lounesksouri/Library/Developer/Xcode/DerivedData/Squadro-gqwjbvsooypqaifxxyzhdrahkdpo/Build/Intermediates.noindex/ArchiveIntermediates/Squadro/InstallationBuildProductsLocation/Applications/Squadro.app/Contents/Frameworks/sfml-system.framework/Versions/A: bundle format unrecognized, invalid, or unsuitable</p>
  <p>Command CodeSign failed with a nonzero exit code</p>
  </blockquote>