react-native icon indicating copy to clipboard operation
react-native copied to clipboard

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

Open rizwan92 opened this issue 3 years ago • 5 comments
trafficstars

Description

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

dyld[54309]: 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) 

Version

0.70.5

Output of npx react-native info

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

Steps to reproduce

open bowootApp.xcworkspace select iPhone 14 pro build the app then run

apps launched in simulator and then it crashed the logs comes in Xcode of error

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

$RNFirebaseAsStaticFramework = true require_relative '../node_modules/react-native/scripts/react_native_pods' require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '12.4' install! 'cocoapods', :deterministic_uuids => false

target 'bowootApp' do use_frameworks! :linkage => :static config = use_native_modules!

Flags change depending on the env values.

flags = get_default_flags()

use_react_native!( :path => config[:reactNativePath], # Hermes is now enabled by default. Disable by setting this flag to false. # Upcoming versions of React Native may rely on get_default_flags(), but # we make it explicit here to aid in the React Native upgrade process. :hermes_enabled => true, :fabric_enabled => flags[:fabric_enabled], # Enables Flipper. # # Note that if you have use_frameworks! enabled, Flipper will not work and # you should disable the next line. # :flipper_configuration => FlipperConfiguration.enabled, # An absolute path to your application root. :app_path => "#{Pod::Config.instance.installation_root}/.." )

target 'bowootAppTests' do inherit! :complete # Pods for testing end

post_install do |installer| react_native_post_install( installer, # Set mac_catalyst_enabled to true in order to apply patches # necessary for Mac Catalyst builds :mac_catalyst_enabled => false ) __apply_Xcode_12_5_M1_post_install_workaround(installer) end end

rizwan92 avatar Nov 09 '22 19:11 rizwan92

same issue see 34608

AlanWen2016 avatar Nov 10 '22 10:11 AlanWen2016

I have the same issue, in GitHub action macos-12.

We also use bundle , bundle install, cd ios && bundle exec pod install, we also use ruby 2.7.5 , nothing we tried work. React Native 0.68.5, any clue how we can do ?

kopax-polyconseil avatar Dec 02 '22 16:12 kopax-polyconseil

I fixed it by updating x-code to latest version

rizwan92 avatar Dec 09 '22 18:12 rizwan92

I fixed it by updating x-code to latest version

May I ask what version of xcode / macos and react native ?

Thank you

kopax-polyconseil avatar Dec 11 '22 11:12 kopax-polyconseil

bundle install cd ios && bundle exec pod install

ReactNativ avatar Jun 14 '23 02:06 ReactNativ

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Dec 11 '23 05:12 github-actions[bot]

This never was solved

kopax-polyconseil avatar Dec 11 '23 09:12 kopax-polyconseil

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Jun 10 '24 05:06 github-actions[bot]

This issue was closed because it has been stalled for 7 days with no activity.

github-actions[bot] avatar Jun 17 '24 05:06 github-actions[bot]