title: How to run an iOS app that causes runtime error for frameworks "code signature invalid"
body: <p>Every time I try to run this application it builds OK and installs, but as soon as it runs, the application breaks and prints this error message:</p>
  
  <pre><code>dyld: Library not loaded: @rpath/StandardCyborgFusion.framework/StandardCyborgFusion
    Referenced from: /private/var/containers/Bundle/Application/2292CCF2-800F-4E28-AF10-A1B98081DD0A/StandardCyborgExample.app/StandardCyborgExample
    Reason: no suitable image found.  Did find:
      /private/var/containers/Bundle/Application/2292CCF2-800F-4E28-AF10-A1B98081DD0A/StandardCyborgExample.app/Frameworks/StandardCyborgFusion.framework/StandardCyborgFusion: code signature invalid for '/private/var/containers/Bundle/Application/2292CCF2-800F-4E28-AF10-A1B98081DD0A/StandardCyborgExample.app/Frameworks/StandardCyborgFusion.framework/StandardCyborgFusion'
  </code></pre>
  
  <p>I saw many similar posts here and on the App Developer forums about this problem but no one has an explanation or a valid fix. </p>
  
  <p>I tried:</p>
  
  <ul>
  <li>Cleaning and building</li>
  <li>Restarting XCode</li>
  <li>Restarting the Mac</li>
  <li>Completely resetting Keychain</li>
  <li>Verifying all Keychain certs Trust settings are on "Use System Defaults"</li>
  <li>Factory resetting my Mac</li>
  </ul>
  
  <hr>
  
  <p>It appears to be an issue with my iOS device. The application can start on a simulator, but the simulator is not good for my development purposes so I need to make this work on my device. I recently updated my iPhone XR to iOS 13.3.1.</p>
  
  <hr>
  
  <p>"<a href="https://github.com/flutter/flutter/issues/49504" rel="noreferrer">Running new app on actual iOS (13.3.1) device crashes on startup: code signature invalid for "path/to/Flutter.framework/Flutter" #49504</a>" seems to be the same issue.</p>
  
  <p>I'm using XCode 11 and iOS 13.</p>