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

hermes (no such file) Thread 1: signal SIGABRT React Native 0.70.0 #34599

Closed
elmcapp opened this issue Sep 6, 2022 · 15 comments
Closed

hermes (no such file) Thread 1: signal SIGABRT React Native 0.70.0 #34599

elmcapp opened this issue Sep 6, 2022 · 15 comments
Labels
Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Needs: Triage 🔍 Tech: Hermes Hermes Engine: https://hermesengine.dev/

Comments

@elmcapp
Copy link

elmcapp commented Sep 6, 2022

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(R) Core(TM) 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

@elmcapp elmcapp changed the title hermes (no such file) React Native 0.70.0 hermes (no such file) Thread 1: signal SIGABRT React Native 0.70.0 Sep 6, 2022
@Zero6d
Copy link

Zero6d commented Sep 6, 2022

Hello,

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

@elmcapp
Copy link
Author

elmcapp commented Sep 6, 2022

Update. I was able to get working by doing the following
1.) Updating nodeJs to version 18.8.0
https://nodejs.org/en/

2.) ProjectFolder/ios/Podfile
change hermes_enabled => true, to hermes_enabled => false,

Not sure why we would have to do this maybe a bug. This is happening on a fresh install of Rest Native

@ch3rn1k
Copy link

ch3rn1k commented Sep 6, 2022

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

@jokerhp6789
Copy link

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

@irekrog
Copy link

irekrog commented Sep 6, 2022

Saaaaaame

@Bayramito
Copy link

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

@niyati-tanna-tark
Copy link

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.

@ch3rn1k
Copy link

ch3rn1k commented 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.

How to deal with no "hermes" found? Hmm

@Bayramito
Copy link

Try #34608

@niyati-tanna-tark
Copy link

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

@kelset kelset added the Tech: Hermes Hermes Engine: https://hermesengine.dev/ label Sep 12, 2022
@kelset
Copy link
Contributor

kelset commented Sep 13, 2022

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

@kelset kelset added the Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. label Sep 13, 2022
@github-actions
Copy link

⚠️ Missing Reproducible Example
ℹ️ It looks like your issue is missing a reproducible example. Please provide a Snack or a repository that demonstrates the issue you are reporting in a minimal, complete, and reproducible manner.

@kelset
Copy link
Contributor

kelset commented Sep 14, 2022

please refer to #34608 (comment)

@kelset kelset closed this as completed Sep 14, 2022
@kopax-polyconseil
Copy link

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 ?

@irfankhanktk
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Needs: Triage 🔍 Tech: Hermes Hermes Engine: https://hermesengine.dev/
Projects
None yet
Development

No branches or pull requests

10 participants