Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ionic Capacitor Deploy App on ios 13.3 device freeze splashscreen

After I have run the latest update on my iphone and then want to deploy the app to my iphone using XCode, the app is started on the iphone and then the splash screen freezes. In XCode the following is displayed:

dyld: Library not loaded: @rpath/Capacitor.framework/Capacitor
  Referenced from: /private/var/containers/Bundle/Application/BB53AC39-F58D-47D4-8860-273E51D8171B/App.app/App
  Reason: no suitable image found.  Did find:
    /private/var/containers/Bundle/Application/BB53AC39-F58D-47D4-8860-273E51D8171B/App.app/Frameworks/Capacitor.framework/Capacitor: code signature invalid for '/private/var/containers/Bundle/Application/BB53AC39-F58D-47D4-8860-273E51D8171B/App.app/Frameworks/Capacitor.framework/Capacitor'

    /private/var/containers/Bundle/Application/BB53AC39-F58D-47D4-8860-273E51D8171B/App.app/Frameworks/Capacitor.framework/Capacitor: code signature invalid for '/private/var/containers/Bundle/Application/BB53AC39-F58D-47D4-8860-273E51D8171B/App.app/Frameworks/Capacitor.framework/Capacitor'

    /private/var/containers/Bundle/Application/BB53AC39-F58D-47D4-8860-273E51D8171B/App.app/Frameworks/Capacitor.framework/Capacitor: stat() failed with errno=1
    /private/var/containers/Bundle/Application/BB53AC39-F58D-47D4-8860-273E51D8171B/App.app/Frameworks/Capacitor.framework/Capacitor: code signature invalid for '/private/var/containers/Bundle/Application/BB53AC39-F58D-47D4-8860-273E51D8171B/App.app/Frameworks/Capacitor.framework/Capacitor'

    /private/var/containers/Bundle/Application/BB53AC39-F58D-47D4-8860-273E51D8171B/App.app/Frameworks/Capacitor.framework/Capacitor: stat() failed with errno=1
(lldb) 

Many thanks in advance for your help!

like image 229
G-EA Avatar asked Feb 20 '20 02:02

G-EA


2 Answers

This is a bug in Xcode or CocoaPods.

Free Apple dev accounts can't run apps on real devices if they use some CocoaPods frameworks (such as Capacitor, but it's affecting a lot of more).

So the only solution for now is to pay for an Apple dev account or use the simulator.

You can also try to remove use_frameworks! from ios/App/Podfile and run npx cap sync ios, but not sure if some other thing will break.

like image 105
jcesarmobile Avatar answered Oct 03 '22 07:10

jcesarmobile


On the 24th of March Apple released iOS 13.4. This update includes a fix for the code signature issue! Please refer to the iOS 13.4 beta 3 for more information.

like image 44
Rover Avatar answered Oct 03 '22 07:10

Rover