-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Library not loaded: @rpath/hermes.framework/hermes on iOS #34601
Comments
#34599 same? |
it could be! |
working if i disable hermes on Podfile |
Thanks but i would like to keep it enabled! |
@niyati-tanna-tark I solved by doing this. |
As I commented here, based on the repro steps I don't get the error: #34612 (comment) I'm going to close this issue unless someone can provide proper repro steps |
|
I have fixed by putting this code within def fix_hermes()
path = "Pods/Target Support Files/Pods-AppName/Pods-AppName-frameworks.sh"
lines = File.readlines(path)
lines.insert(177, 'install_framework "${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes-engine/hermes.framework"'+"\n")
File.write(path, lines.join, mode: "w")
end |
@allemanfredi could you help me understand why that is needed/what it does? 🤔 |
@kelset it adds the following code to install_framework "${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes-engine/hermes.framework" |
See #34608 for fix. |
When doing a fresh build from scratch, the app would crash on startup with the following error `Library not loaded: @rpath/hermes.framework/hermes` To fix this we need to add Hermes to project's linked libraries More info: facebook/react-native#34601 (comment)
When doing a fresh build from scratch, the app would crash on startup with the following error `Library not loaded: @rpath/hermes.framework/hermes` To fix this we need to add Hermes to project's linked libraries and into embedded libraries More info: facebook/react-native#34601 (comment)
When doing a fresh build from scratch, the app would crash on startup with the following error `Library not loaded: @rpath/hermes.framework/hermes` To fix this we need to add Hermes to project's linked libraries and into embedded libraries More info: facebook/react-native#34601 (comment)
In my case app was running fine for first launch but if I close and open from launcher app was failing with same error. Setting hermes to |
To fix this issue you need to use the good version of ruby (used to install cocoapods...). It will fix pod dependencies linkage during You can run Please see RN 0.69 changelog: |
I am out of idea that doesn't involve react-native upgrade, if you guys have any idea to share. |
Cause: In node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec from react-native 0.70.0 minimum iOS deployment target is upgraded to 12.4 from 11.0. Solution: So, I just upgraded my minimum iOS deployment target to 12.4 and it works. I hope this helps someone! |
Updating cocoapods to the latest version solved this issue for me! (just had to run |
The cocoapods version should be:
Mentioned here: React Native Upgrade Helper |
Description
As soon as the app starts, it crashes.
Version
0.70.0
Output of
npx react-native info
Steps to reproduce
Just launch
npx react-native run-ios --simulator "iPhone 12"
withhermes_enabled => true
Snack, code example, screenshot, or link to a repository
none
The text was updated successfully, but these errors were encountered: