Closed allemanfredi closed 2 years ago
34599 same?
it could be!
working if i disable hermes on Podfile
working if i disable hermes on Podfile
Thanks but i would like to keep it enabled!
I solved it by adding hermes.xcframework file to
xcode > build phases > Link binary with Libraries
just press to + sign and search for hermes
Add it and rebuild your app.
@niyati-tanna-tark I solved by doing this.
I solved it by adding hermes.xcframework file to
xcode > build phases > Link binary with Libraries
just press to + sign and search for hermes
Add it and rebuild your app.
This works for builds with xcode, but not for cmd-builds like react-native uses: npx react-native run-ios
any fix for this?
I solved it by adding hermes.xcframework file to xcode > build phases > Link binary with Libraries just press to + sign and search for hermes Add it and rebuild your app.
This works for builds with xcode, but not for cmd-builds like react-native uses:
npx react-native run-ios
any fix for this?
Yes in xCode you will need to Embed & Sign hermes framework and then build again using command. It will work.
As I commented here, based on the repro steps I don't get the error: https://github.com/facebook/react-native/issues/34612#issuecomment-1243574942
I'm going to close this issue unless someone can provide proper repro steps
:warning: | Missing Reproducible Example |
---|---|
:information_source: | 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. |
I have fixed by putting this code within Podfile
after __apply_Xcode_12_5_M1_post_install_workaround(installer)
def fix_hermes()
path = "Pods/Target Support Files/Pods-AppName/Pods-AppName-frameworks.sh"
lines = File.readlines(path)
lines.insert(177, 'install_framework "${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes-engine/hermes.framework"'+"\n")
File.write(path, lines.join, mode: "w")
end
@allemanfredi could you help me understand why that is needed/what it does? 🤔
@kelset it adds the following code to Pods-Eidoo-frameworks
install_framework "${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes-engine/hermes.framework"
34608
In my case app was running fine for first launch but if I close and open from launcher app was failing with same error.
Setting hermes to Embed & Sign
as suggested in this comment did the trick for me. Thanks.!
To fix this issue you need to use the good version of ruby (used to install cocoapods...). It will fix pod dependencies linkage during pod install
command. Check .ruby-version
file in your repo.
Ensure to re-run pod install
+ rebuild iOS after upgrade ruby.
You can run bundle install
to check if you are running good version of ruby.
Please see RN 0.69 changelog: https://reactnative.dev/blog/2022/06/21/version-069#upgrades Ruby upgrade: https://github.com/facebook/react-native/commit/2c87b7466e098c5cd230e02b279fc7bc7a357615
I am out of idea that doesn't involve react-native upgrade, if you guys have any idea to share.
I solved it by adding hermes.xcframework file to
xcode > build phases > Link binary with Libraries
just press to + sign and search for hermes
Add it and rebuild your app.
Still work with react-native 0.70.10. Thank you so much.
Cause: In node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec from react-native 0.70.0 minimum iOS deployment target is upgraded to 12.4 from 11.0.
Solution: So, I just upgraded my minimum iOS deployment target to 12.4 and it works.
I hope this helps someone!
Updating cocoapods to the latest version solved this issue for me! (just had to run sudo gem install cocoapods
and check that pod --version
was 1.15.x
)
The cocoapods version should be:
'cocoapods', '>= 1.13', '< 1.15'
Mentioned here: React Native Upgrade Helper
Description
As soon as the app starts, it crashes.
Version
0.70.0
Output of
npx react-native info
Steps to reproduce
Just launch
npx react-native run-ios --simulator "iPhone 12"
withhermes_enabled => true
Snack, code example, screenshot, or link to a repository
none