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.

Library not loaded: @rpath/hermes.framework/hermes on iOS

See original GitHub issue

Description

As soon as the app starts, it crashes.

Version

0.70.0

Output of npx react-native info

System:
    OS: macOS 12.5.1
    CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
    Memory: 299.79 MB / 16.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 16.16.0 - ~/.nvm/versions/node/v16.16.0/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 8.11.0 - ~/.nvm/versions/node/v16.16.0/bin/npm
    Watchman: 2022.02.14.00 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.11.3 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
    Android SDK: Not Found
  IDEs:
    Android Studio: 4.1 AI-201.8743.12.41.6953283
    Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.16 - /Library/Java/JavaVirtualMachines/jdk-11.0.16.jdk/Contents/Home/bin/javac
  npmPackages:
    @react-native-community/cli: 8.0.4 => 8.0.4 
    react: 18.2.0 => 18.2.0 
    react-native: 0.70.0 => 0.70.0 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Steps to reproduce

Just launch npx react-native run-ios --simulator "iPhone 12" with hermes_enabled => true

Snack, code example, screenshot, or link to a repository

none

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:6
  • Comments:17

github_iconTop GitHub Comments

31reactions
niyati-tanna-tarkcommented, Sep 12, 2022

I solved it by adding hermes.xcframework file to xcode > build phases > Link binary with Libraries just press to + sign and search for hermes Screenshot 2022-09-07 at 7 03 52 PM Add it and rebuild your app.

This works for builds with xcode, but not for cmd-builds like react-native uses: npx react-native run-ios any fix for this?

Screenshot 2022-09-12 at 10 54 00 AM

Yes in xCode you will need to Embed & Sign hermes framework and then build again using command. It will work.

14reactions
niyati-tanna-tarkcommented, Sep 7, 2022

I solved it by adding hermes.xcframework file to

xcode > build phases > Link binary with Libraries

just press to + sign and search for hermes

Screenshot 2022-09-07 at 7 03 52 PM

Add it and rebuild your app.

Read more comments on GitHub >

github_iconTop Results From Across the Web

9 - Stack Overflow
This error means that your react-native project is set to use hermes a lightweight Javascript engine created by facebook specially for react- ...
Read more >
dyld: Library not loaded: @rpath/s… | Apple Developer Forums
I'm working on a Swift project (Swift 2.1) that references multiple objective c projects and frameworks written in objective c. The problem actually...
Read more >
I have enabled Hermes in my react-native(v0 ... - appsloveworld
Everytime I run app I get following stack trace. dyld: dyld cache load error: shared cache file open() failed dyld: Library not loaded:...
Read more >
Using Hermes - React Native
If you are using a non-standard way of loading the JS bundle, it is possible that the HermesInternal variable is available but you...
Read more >
iOS -App Crash on Launch dyld: Library not loaded, Reason
This error is likely happening because the framework contains builds meant for the iOS simulator. Since you can't upload to the App Store...
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