Skip to content
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

iOS app crash when new architecture is enabled for RN 0.69 #34060

Closed
BraveEvidence opened this issue Jun 24, 2022 · 5 comments
Closed

iOS app crash when new architecture is enabled for RN 0.69 #34060

BraveEvidence opened this issue Jun 24, 2022 · 5 comments
Labels
Platform: iOS iOS applications. Resolution: Fixed A PR that fixes this issue has been merged. Tech: Hermes Hermes Engine: https://hermesengine.dev/ Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules)

Comments

@BraveEvidence
Copy link

Description

IOS app crash when new architecture is enabled.

Following is the error message

dyld[7584]: Library not loaded: @rpath/hermes.framework/hermes
  Referenced from: /Users/transformhub/Library/Developer/CoreSimulator/Devices/C4701BE2-14AC-4199-9F37-35D16044678B/data/Containers/Bundle/Application/99A862BA-AF04-4583-94E4-1B26AE75EB56/iosapp.app/iosapp
  Reason: tried: '/Users/transformhub/Library/Developer/Xcode/DerivedData/iosapp-flwkvetfogjghcgfttcelwqhnknn/Build/Products/Debug-iphonesimulator/hermes.framework/hermes' (no such file), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/hermes.framework/hermes' (no such file), '/usr/lib/swift/hermes.framework/hermes' (no such file), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/hermes.framework/hermes' (no such file), '/usr/lib/swift/hermes.framework/hermes' (no such file), '/Users/transformhub/Library/Developer/CoreSimulator/Devices/C4701BE2-14AC-4199-9F37-35D16044678B/data/Containers/Bundle/Application/99A862BA-AF04-4583-94E4-1B26AE75EB56/iosapp.app/Frameworks/hermes.framework/hermes' (no such file), '/Users/transformhub/Library/Developer/CoreSimulator/Devices/C4701BE2-14AC-4199-9F37-35D16044678B/data/Containers/Bundle/Application/99A862BA-AF04-4583-94E4-1B26AE75EB56/iosapp.app/Frameworks/hermes.framework/hermes' (no such file), '/Users/transformhub/Library/Developer/CoreSimulator/Devices/C4701BE2-14AC-4199-9F37-35D16044678B/data/Containers/Bundle/Application/99A862BA-AF04-4583-94E4-1B26AE75EB56/iosapp.app/Frameworks/hermes.framework/hermes' (no such file), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/hermes.framework/hermes' (no such file), '/usr/lib/swift/hermes.framework/hermes' (no such file), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/hermes.framework/hermes' (no such file), '/usr/lib/swift/hermes.framework/hermes' (no such file), '/Users/transformhub/Library/Developer/CoreSimulator/Devices/C4701BE2-14AC-4199-9F37-35D16044678B/data/Containers/Bundle/Application/99A862BA-AF04-4583-94E4-1B26AE75EB56/iosapp.app/Frameworks/hermes.framework/hermes' (no such file), '/Users/transformhub/Library/Developer/CoreSimulator/Devices/C4701BE2-14AC-4199-9F37-35D16044678B/data/Containers/Bundle/Application/99A862BA-AF04-4583-94E4-1B26AE75EB56/iosapp.app/Frameworks/hermes.framework/hermes' (no such file), '/Users/transformhub/Library/Developer/CoreSimulator/Devices/C4701BE2-14AC-4199-9F37-35D16044678B/data/Containers/Bundle/Application/99A862BA-AF04-4583-94E4-1B26AE75EB56/iosapp.app/Frameworks/hermes.framework/hermes' (no such file), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/hermes.framework/hermes' (no such file)
Library not loaded: @rpath/hermes.framework/hermes
  Referenced from: /Users/transformhub/Library/Developer/CoreSimulator/Devices/C4701BE2-14AC-4199-9F37-35D16044678B/data/Containers/Bundle/Application/99A862BA-AF04-4583-94E4-1B26AE75EB56/iosapp.app/iosapp
  Reason: tried: '/Users/transformhub/Library/Developer/Xcode/DerivedData/iosapp-flwkvetfogjghcgfttcelwqhnknn/Build/Products/Debug-iphonesimulator/hermes.framework/hermes' (no such file), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/hermes.framework/hermes' (no such file), '/usr/lib/swift/hermes.framework/hermes' (no such file), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/hermes.framework/hermes' (no such file), '/usr/lib/swift/hermes.framework/hermes' (no such file), '/Users/transformh
(lldb) 

Screenshot 2022-06-24 at 8 02 01 AM

Version

0.69.0

Output of npx react-native info

info Fetching system and libraries information...
System:
OS: macOS 12.4
CPU: (8) x64 Apple M1
Memory: 44.15 MB / 8.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.13.0 - /usr/local/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 8.1.0 - /usr/local/bin/npm
Watchman: 2022.03.21.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /opt/homebrew/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: 2021.2 AI-212.5712.43.2112.8609683
Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
Languages:
Java: javac 16 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.0.0 => 18.0.0
react-native: 0.69.0 => 0.69.0
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Steps to reproduce

Run npx react-native init myapp
cd to ios
Run RCT_NEW_ARCH_ENABLED=1 pod install
Run npx react-native run-ios

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

https://github.com/PritishSawant/reactnativeiosappturbomodulesv3

@BraveEvidence BraveEvidence added Needs: Triage 🔍 Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules) labels Jun 24, 2022
@react-native-bot react-native-bot added the Platform: iOS iOS applications. label Jun 24, 2022
@ramirezjag00
Copy link

ramirezjag00 commented Jun 24, 2022

I'm also getting this error after using react-native-community/react-native-template-typescript@6.11.1 ios hermes enabled

@aurelienmartin
Copy link

Hello,

I'm encountering an error similar to @PritishSawant on a fresh install of React-Native in version 0.69 at build time on iOS.
I haven't installed any packages other than those needed to run the latest stable version of React-Native.

@BraveEvidence
Copy link
Author

This is resolved in RN 0.69.1

@arinjay
Copy link
Contributor

arinjay commented Jul 26, 2022

is this any way to fix this runtime crash without upgrading to 0.69.1 ?

@cortinico cortinico added Resolution: Fixed A PR that fixes this issue has been merged. and removed Needs: Triage 🔍 labels Jul 29, 2022
@rizwan92
Copy link

rizwan92 commented Nov 9, 2022

I am also facing this issue

Library not loaded: @rpath/hermes.framework/hermes
  Referenced from: <820861D1-8B34-32A1-93AD-515688C99552> /Users/msahu2595/Library/Developer/CoreSimulator/Devices/63B70222-4E95-40F6-8EB9-9399A188F3E3/data/Containers/Bundle/Application/3032952F-549B-47F1-B508-56F0F2CA0F10/bowootApp.app/bowootApp
  Reason: tried: '/Users/msahu2595/Library/Developer/Xcode/DerivedData/bowootApp-ftpnlxrucelfydglzmpeqbmqmquw/Build/Products/Debug-iphonesimulator/hermes.framework/hermes' (errno=2), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/hermes.framework/hermes' (errno=2), '/usr/lib/swift/hermes.framework/hermes' (errno=2, no dyld cache), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/hermes.framework/hermes' (errno=2), '/usr/lib/swift/hermes.framework/hermes' (errno=2, no dyld cache), '/Users/msahu2595/Library/Developer/CoreSimulator/Devices/63B70222-4E95-40F6-8EB9-9399A188F3E3/data/Containers/Bundle/Application/3032952F-549B-47F1-B508-56F0F2CA0F10/bowootApp.app/Frameworks/hermes.framework/hermes' (errno=2), '/Users/msahu2595/Library/Developer/CoreSimulator/Devices/63B70222-4E95-40F6-8EB9-9399A188F3E3/data/Containers/Bundle/Application/3032952F-549B-47F1-B508-56F0F2CA0F10/bowootApp.app/Frameworks/hermes.framework/hermes' (errno=2), '/Users/msahu2595/Library/Developer/CoreSimulator/Devices/63B70222-4E95-40F6-8EB9-9399A188F3E3/data/Containers/Bundle/Application/3032952F-549B-47F1-B508-56F0F2CA0F10/bowootApp.app/Frameworks/hermes.framework/hermes' (errno=2), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/hermes.framework/hermes' (errno=2), '/usr/lib/swift/hermes.framework/hermes' (errno=2, no dyld cache), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/hermes.framework/hermes' (errno=2), '/usr/lib/swift/hermes.framework/hermes' (errno=2, no dyld cache), '/Users/msahu2595/Library/Developer/CoreSimulator/Devices/63B70222-4E95-40F6-8EB9-9399A188F3E3/data/Containers/Bundle/Application/3032952F-549B-47F1-B508-56F0F2CA0F10/bowootApp.app/Frameworks/hermes.framework/hermes' (errno=2), '/Users/msahu2595/Library/Developer/CoreSimulator/Devices/63B70222-4E95-40F6-8EB9-9399A188F3E3/data/Containers/Bundle/Application/3032952F-549B-47F1-B508-56F0F2CA0F10/bowootApp.app/Frameworks/hermes.framework/hermes' (errno=2), '/Users/msahu2595/Library/Developer/CoreSimulator/Devices/63B70222-4E95-40F6-8EB9-9399A188F3E3/data/Containers/Bundle/Application/3032952F-549B-47F1-B508-56F0F2CA0F10/bowootApp.app/Frameworks/hermes.framework/hermes' (errno=2), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/hermes.framework/hermes' (errno=2)
Library not loaded: @rpath/hermes.framework/hermes
  Referenced from: <820861D1-8B34-32A1-93AD-515688C99552> /Users/msahu2595/Library/Developer/CoreSimulator/Devices/63B70222-4E95-40F6-8EB9-9399A188F3E3/data/Containers/Bundle/Application/3032952F-549B-47F1-B508-56F0F2CA0F10/bowootApp.app/bowootApp
  Reason: tried: '/Users/msahu2595/Library/Developer/Xcode/DerivedData/bowootApp-ftpnlxrucelfydglzmpeqbmqmquw/Build/Products/Debug-iphonesimulator/hermes.framework/hermes' (errno=2), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/hermes.framework/hermes' (errno=2), '/usr/lib/swift/hermes.framework/hermes' (errno=2, no dyld cache), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/hermes.framework/hermes' (errno=2), '/usr/lib/swift/hermes.framework/herme
dyld config: DYLD_SHARED_CACHE_DIR=/Users/msahu2595/Library/Developer/CoreSimulator/Caches/dyld/22A380/com.apple.CoreSimulator.SimRuntime.iOS-16-1.20B72 DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot DYLD_LIBRARY_PATH=/Users/msahu2595/Library/Developer/Xcode/DerivedData/bowootApp-ftpnlxrucelfydglzmpeqbmqmquw/Build/Products/Debug-iphonesimulator:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libBacktraceRecording.dylib:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libMainThreadChecker.dylib:/usr/lib/libRPAC.dylib:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib DYLD_FRAMEWORK_PATH=/Users/msahu2595/Library/Developer/Xcode/DerivedData/bowootApp-ftpnlxrucelfydglzmpeqbmqmquw/Build/Products/Debug-iphonesimulator DYLD_FALLBACK_FRAMEWORK_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks DYLD_FALLBACK_LIBRARY_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib
(lldb) 

System:
OS: macOS 13.0
CPU: (4) x64 Intel(R) Core(TM) i5-7400 CPU @ 3.00GHz
Memory: 32.36 MB / 8.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.17.0 - ~/.nvm/versions/node/v16.17.0/bin/node
Yarn: Not Found
npm: 8.15.0 - ~/.nvm/versions/node/v16.17.0/bin/npm
Watchman: 2022.10.24.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.1, iOS 16.1, macOS 13.0, tvOS 16.1, watchOS 9.1
Android SDK: Not Found
IDEs:
Android Studio: 2021.1 AI-211.7628.21.2111.8309675
Xcode: 14.1/14B47b - /usr/bin/xcodebuild
Languages:
Java: 11.0.14.1 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: Not Found
react-native: Not Found
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: iOS iOS applications. Resolution: Fixed A PR that fixes this issue has been merged. Tech: Hermes Hermes Engine: https://hermesengine.dev/ Type: New Architecture Issues and PRs related to new architecture (Fabric/Turbo Modules)
Projects
None yet
Development

No branches or pull requests

7 participants