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: @rpath/capacitor.framework/capacitor library not loaded for iOS 13.3.1

See original GitHub issue

Bug Report

Capacitor Version

npx cap doctor output:

Latest Dependencies:

@capacitor/cli: 1.5.0

@capacitor/core: 1.5.0

@capacitor/android: 1.5.0

@capacitor/ios: 1.5.0

Installed Dependencies:

@capacitor/android not installed

@capacitor/cli 1.5.0

@capacitor/core 1.5.0

@capacitor/ios 1.5.0

Found 12 Capacitor plugins for ios: cordova-plugin-add-swift-support (2.0.2) cordova-plugin-datepicker (0.9.3) cordova-plugin-googlemaps (2.6.2) cordova-plugin-ionic-keyboard (2.2.0) cordova-plugin-nativegeocoder (3.2.2) cordova-plugin-taptic-engine (2.1.0) cordova-plugin-vibration (3.1.1) cordova-plugin-device (2.0.3) cordova-plugin-ionic-webview (4.1.3) cordova-plugin-splashscreen (5.0.3) cordova-plugin-statusbar (2.4.3) cordova-plugin-whitelist (1.3.4) [success] iOS looking great! 👌

Affected Platform(s)

  • Android
  • [x ] iOS
  • Electron
  • Web

Current Behavior

After running Npx cap open ios, when xcode builds and runs the app it breaks on startup on the physical iphone. The splash screen loads and instantly disappears.

Expected Behavior

Expected to launch normally with login screen or main screen.

Sample Code or Sample Application Repo

N/A at the moment

Reproduction Steps

  1. ng build
  2. npx cap copy
  3. npx cap sync
  4. npx cap open ios
  5. build and run on iphone in xcode

Other Technical Details

npm --version output: 6.13.7

node --version output: v12.9.1

pod --version output (iOS issues only): 1.9.0.beta.2

Other Information

Closed issue on this forum: https://github.com/ionic-team/capacitor/issues/2360

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
ghostcommented, Feb 26, 2020

Since multiple people have made github issues about this, I feel like this should be mentioned in the tutorial. I made a pull request to add a notice about this.

2reactions
jcesarmobilecommented, Feb 21, 2020

See https://github.com/ionic-team/capacitor/issues/2383

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 frameworks).

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

dyld: Library not loaded | Apple Developer Forums
So yesterday I installed iOS 13.3.1 on my iPhone XR and macOS 10.15.3 on my iMac. Then, I've been getting this error in...
Read more >
xcode - Ionic Capacitor Deploy App on ios 13.3 device freeze ...
This is a bug in Xcode or CocoaPods. Free Apple dev accounts can't run apps on real devices if they use some CocoaPods...
Read more >
Many native plugins not usable/ Especially local notifications ...
Why are so many ionic native plugins in Ionic not usable ... bug: @rpath/capacitor.framework/capacitor library not loaded for iOS 13.3.1.
Read more >
dyld: Library not loaded - Visual Studio Feedback
Closed - Not a Bug. ···. From reporter comment: “It was a problem with iOS 13.3.1. Apple messed app authentication of third party...
Read more >
Xcode 13 build not launching on iOS 14: dyld - Reddit
After moving to Xcode 13 my app is crashing on launch on iOS 14 (works fine for ... dyld: Library not loaded: /System/Library/Frameworks/_ ......
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