npx cap doctor output:
馃拪 Capacitor Doctor 馃拪
Latest Dependencies:
@capacitor/cli: 1.4.0
@capacitor/core: 1.4.0
@capacitor/android: 1.4.0
@capacitor/ios: 1.4.0
Installed Dependencies:
@capacitor/cli 1.4.0
@capacitor/ios 1.4.0
@capacitor/core 1.4.0
@capacitor/android 1.4.0
App close immediately after opens, and on Xcode we get this error
`
dyld: Library not loaded: @rpath/Capacitor.framework/Capacitor
Referenced from: /private/var/containers/Bundle/Application/BA056E17-46F0-4B84-AEB1-6D3B7D85FEA6/App.app/App
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/BA056E17-46F0-4B84-AEB1-6D3B7D85FEA6/App.app/Frameworks/Capacitor.framework/Capacitor: code signature invalid for '/private/var/containers/Bundle/Application/BA056E17-46F0-4B84-AEB1-6D3B7D85FEA6/App.app/Frameworks/Capacitor.framework/Capacitor'
/private/var/containers/Bundle/Application/BA056E17-46F0-4B84-AEB1-6D3B7D85FEA6/App.app/Frameworks/Capacitor.framework/Capacitor: code signature invalid for '/private/var/containers/Bundle/Application/BA056E17-46F0-4B84-AEB1-6D3B7D85FEA6/App.app/Frameworks/Capacitor.framework/Capacitor'
/private/var/containers/Bundle/Application/BA056E17-46F0-4B84-AEB1-6D3B7D85FEA6/App.app/Frameworks/Capacitor.framework/Capacitor: stat() failed with errno=1
/private/var/containers/Bundle/Application/BA056E17-46F0-4B84-AEB1-6D3B7D85FEA6/App.app/Frameworks/Capacitor.framework/Capacitor: code signature invalid for '/private/var/containers/Bundle/Application/BA056E17-46F0-4B84-AEB1-6D3B7D85FEA6/App.app/Frameworks/Capacitor.framework/Capacitor'
/private/var/containers/Bundle/Application/BA056E17-46F0-4B84-AEB1-6D3B7D85FEA6/App.app/Frameworks/Capacitor.framework/Capacitor: stat() failed with errno=1
(lldb)
`
App open without problems
https://github.com/arielhernandezmusa/capacitor-camera-preview-demos/tree/master/ccpd-react
run npx open ios and start the app on a device
npm --version output: 6.12.1
node --version output: v12.13.1
pod --version output (iOS issues only): 1.8.4
Same error on 2 iPhone7 after updating to iOS 13.3.1 (Same version of app worked before iOS update)
On Multiple iPads with iOS 13.3 no error, runs perfectly fine.
It's some CocoaPods problem, a lot of projects are affected.
In one of the issues I saw this
Are you using a non-developer Apple ID to install the app to your phone? It looks like iOS 13.3.1 has broken apps installed with free Apple IDs, but only if they contain embedded frameworks.
Are you using a free or paid account?
I've been using 13.3.1 beta for a while without problems
For me it鈥榮 the free account.
Yep, if鈥檚 the free account, with a paid account the app runs without problems
going to close with Apple bug tag, it's either an Xcode bug or CocoaPods bug, nothing we can do from Capacitor.
I've seen some suggestions of removing use_frameworks! from the Podfile, but not sure if Capacitor will work without it
I suggest you to use iOS simulator and wait when Apple fix this and change build to cordova.
I have just encountered this same bug. Meanwhile iOS 13.4, macOS 10.15.4 and Xcode 11.4 has been released and the bug appears to be fixed. Could you check again @arielhernandezmusa @heda ?
I am having same issue.
Can someone help?. I am using paid account and despite that I am getting same error.
Upgrading to Capacitor 2.0