react-native: hermes (no such file) Thread 1: signal SIGABRT React Native 0.70.0

Description

I am getting error: Thread 1: signal SIGABRT

Reason: tried: ‘/Users/jerryseigle/Library/Developer/Xcode/DerivedData/myapp-briprcnqfundzsbvbxvlwpcvulms/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/jerryseigle/Lib

Version

0.70.0

Output of npx react-native info

System: OS: macOS 12.4 CPU: (8) x64 Intel® Core™ i5-1038NG7 CPU @ 2.00GHz Memory: 105.40 MB / 16.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 18.8.0 - /usr/local/bin/node Yarn: 1.22.17 - ~/.yarn/bin/yarn npm: 8.18.0 - /usr/local/bin/npm Watchman: 2022.02.07.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: API Levels: 23, 28, 29, 30, 31 Build Tools: 30.0.2 System Images: android-29 | Google Play Intel x86 Atom, android-30 | Google APIs Intel x86 Atom_64 Android NDK: Not Found IDEs: Android Studio: 2021.1 AI-211.7628.21.2111.8193401 Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild Languages: Java: 11.0.11 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 18.1.0 => 18.1.0 react-native: 0.70.0 => 0.70.0 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Steps to reproduce

yarn ios

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

none. React Native 0.70.0 will not build

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 10
  • Comments: 15

Most upvoted comments

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.

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.

How to deal with no “hermes” found? Hmm

Saaaaaame

I have same issue when init new project , app just crash right after open

I just deleted pods folder and installed pods again fixed my issue.

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 ?

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.

How to deal with no “hermes” found? Hmm

Please check you Podfile, it should have hermes enabled to true. Screenshot 2022-09-08 at 11 02 59 AM

I upgraded my node to 18 and still doesnt work on me

Got to work after disabling hermes and done with fresh build. My Podfile:

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 'xxx' do
  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 => false,
    :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 'xxx' 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

BUT if you want to use new 0.70.0 RN features - i have no idea how to get this work