title: Code signing framework fails when distributing for Enterprise in Xcode 10
body: <p>I am trying to distribute an app for Enterprise, and keep getting this error (after selecting the Provisioning Profile):</p>
  <p><a href="https://i.stack.imgur.com/9Q0tz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9Q0tz.png" alt="enter image description here" /></a></p>
  <p>Digging into the logs reveal this:</p>
  <pre><code>2018-09-21 04:14:07 +0000  /var/folders/xj/stm8l48s1nq9320sfh3ytw140000gn/T/XcodeDistPipeline.IsE/Root/Payload/Fleet UAT.app/Frameworks/AppAuth.framework: replacing existing signature
  2018-09-21 04:14:07 +0000  /var/folders/xj/stm8l48s1nq9320sfh3ytw140000gn/T/XcodeDistPipeline.IsE/Root/Payload/Fleet UAT.app/Frameworks/AppAuth.framework: code object is not signed at all
  2018-09-21 04:14:07 +0000  /usr/bin/codesign exited with 1
  </code></pre>
  <p>Similar issue happens to all frameworks used by the project. These frameworks were added using Carthage.</p>
  <p>This started happening after I upgraded to Xcode 10 &amp; Carthage 0.30.1 (I was using 0.16.x previously).</p>