question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: Error when open iOS App

See original GitHub issue

Bug 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:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

8reactions
erichstarkcommented, Feb 20, 2020

I suggest you to use iOS simulator and wait when Apple fix this and change build to cordova.

1reaction
jcesarmobilecommented, Jan 30, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Diagnosing and resolving bugs in your running app
Inspect your running app to isolate bugs, locate crashes, identify excess system resource usage, visualize memory bugs, and investigate view layout problems.
Read more >
Top 10 Ways to Fix App won't Open on iPhone after iOS 15 ...
1. Turn Off iPhone and Back On: · hard reset to fix app won't open on iphone. Press and hold "Sleep/wake" button for...
Read more >
Apple fixes bug that stopped iOS apps from opening
Apple has now resolved the bug that was plaguing iPhone and iPad apps over the weekend, causing some apps to not launch at...
Read more >
How to Fix Crashing Apps on an iPhone or Android?
Fix App Crashes on your Apple iPhone or Android smartphone. Kill the App; Restart the Phone; Update the App; Official Support; Use Bugfender!...
Read more >
How to Fix Crashing Apps on iPhone & iPad | OSXDaily
Open the App Store and go to the “Updates” tab · Install any updates available to the application which is exhibiting crashing problems...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found