bug: Error when open iOS App
See original GitHub issueBug Report
Capacitor Version
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
Affected Platform(s)
- Android
- iOS
- Electron
- Web
Current Behavior
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) `
Expected Behavior
App open without problems
Sample Code or Sample Application Repo
https://github.com/arielhernandezmusa/capacitor-camera-preview-demos/tree/master/ccpd-react
Reproduction Steps
run npx open ios and start the app on a device
Other Technical Details
npm --version
output: 6.12.1
node --version
output: v12.13.1
pod --version
output (iOS issues only): 1.8.4
Other Information
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:10 (3 by maintainers)
I suggest you to use iOS simulator and wait when Apple fix this and change build to cordova.
It’s some CocoaPods problem, a lot of projects are affected. In one of the issues I saw this
Are you using a free or paid account?
I’ve been using 13.3.1 beta for a while without problems