How to run an iOS app that causes runtime error for frameworks "code signature invalid"

This is an issue with iOS 13.3.1. All dynamic frameworks being compiled to the newest release of iOS 13.3.1 are experiencing this issue when run on a personal provisioning profile/developer account. The solution, copied from jmagman from Github, is below.

You can:

  1. Use a non-Personal Team provisioning profile (paid developer account).
  2. Run on the 13.3.1 simulator.
  3. Test on a real iOS device running 13.3 or lower.
  4. Install the beta profile on your test device and install iOS 13.4 beta 3. (Fixed)
  5. Wait for iOS 13.4 to be released.

Hopefully this issue will be fixed soon.


I'm using CocoaPods, and for me this fixes the error (Wasa22's Answer on github issue):

  1. Open the podfile
  2. Comment out use_frameworks!
  3. Add use_modular_headers!
  4. In Terminal, do a pod update -> pod install
  5. In Xcode, Clean (Command-Shift-K) -> Build and Run.

Source: https://github.com/Alamofire/Alamofire/issues/3051


This appears to be fixed on iOS 13.4 beta 3. You can install the beta profile or wait for the release of iOS 13.4.