Open neo773 opened 1 year ago
Hi, I think the docs are out of date, and you just need to do the normal setup steps, with one addition:
When you run pod install
, run USE_HERMES=1 pod install
Can you let me know if that works?
Hi, I think the docs are out of date, and you just need to do the normal setup steps, with one addition: When you run
pod install
, runUSE_HERMES=1 pod install
Can you let me know if that works?
That didn't work then I tried manually setting :hermes_enabled
to true
but it errored out when I ran USE_HERMES=1 pod install
/usr/bin/curl -f -L -o /var/folders/_k/jhw1fddx4ml1wl__9b55mqy00000gn/T/d20230624-72825-1uh9cw6/file.tgz https://repo1.maven.org/maven2/com/facebook/react/react-native-artifacts/0.71.14/react-native-artifacts-0.71.14-hermes-ios-debug.tar.gz --create-dirs --netrc-optional --retry 2 -A 'CocoaPods/1.11.3 cocoapods-downloader/1.6.3'
Hi, I think the docs are out of date, and you just need to do the normal setup steps, with one addition: When you run
pod install
, runUSE_HERMES=1 pod install
Can you let me know if that works?That didn't work then I tried manually setting
:hermes_enabled
totrue
but it errored out when I ranUSE_HERMES=1 pod install
/usr/bin/curl -f -L -o /var/folders/_k/jhw1fddx4ml1wl__9b55mqy00000gn/T/d20230624-72825-1uh9cw6/file.tgz https://repo1.maven.org/maven2/com/facebook/react/react-native-artifacts/0.71.14/react-native-artifacts-0.71.14-hermes-ios-debug.tar.gz --create-dirs --netrc-optional --retry 2 -A 'CocoaPods/1.11.3 cocoapods-downloader/1.6.3'
I think what's happening is it's trying to download a prebuilt tarball given a React Native version, but our versions don't match React Native upstream, so "0.71.14" doesn't exist. At the current moment, I think you'll have to download Hermes separately, then pass the tarball path to HERMES_ENGINE_TARBALL_PATH like in the PR notes here: https://github.com/microsoft/react-native-macos/pull/1780
The pre-built Hermes binaries are on Maven Central
I look at the list of latest Hermes releases & find the one that is closest to the macOS release you are using: ie. 0.71.12 The url should look like this (note the release # is in 2 places): https://repo1.maven.org/maven2/com/facebook/react/react-native-artifacts/0.71.12/react-native-artifacts-0.71.12-hermes-ios-debug.tar.gz
Download the tarball to your local machine.
Use this url in your pod install
HERMES_ENGINE_TARBALL_PATH=/path/to/tarball/react-native-artifacts-0.71.12-hermes-ios-debug.tar.gz pod install --verbose
The versions might not line up perfectly, but RN upgrades are much more common than Hermes 😅
I'm also having issues enabling Hermes in 0.73
I installed the hermes-engine-darwin
NPM package like the docs said.
"dependencies": {
"hermes-engine-darwin": "^0.5.3",
"react": "18.2.0",
"react-native": "0.73.2",
"react-native-macos": "^0.73.0-0"
},
I set :hermes_enabled => true,
in the Podfile and run USE_HERMES=1 pod install
.
I get this error:
...
Installing hermes-engine (0.73.6)
Installing libevent (2.1.12)
[!] The 'Pods-ReactNativeMacos-macOS' target has frameworks with conflicting names: hermes.framework.
0.73.0 Is there any way to enable Hermes now?
Environment
Steps to reproduce the bug
Hi, I was trying to enable hermes by following the docs But I get these errors
Expected Behavior
No response
Actual Behavior
No response
Reproducible Demo
No response
Additional context
No response