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!
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With