-
[react-native] npx expo run:ios Error installing hermes-engineRead | Write/Tech 2023. 8. 22. 17:44
✔ Config synced
⚠️ Something went wrong running `pod install` in the `ios` directory.
Command `pod install` failed.
└─ Cause: Error installing hermes-engine해결:
app.json 내에 아래 설정 추가
"jsEngine": "hermes",
In my case, following these steps have me solve this problem:
- Uninstall current ruby: brew uninstall --ignore-dependencies ruby
- Show installed cocoapods: gem list --local | grep cocoapods . It will show a list of cocoapods installed in your computer.
- Uninstall each cocoapods showed step above: sudo gem uninstall cocoapods, sudo gem uninstall cocoapods-core, ...
- Install ruby with brew: brew install ruby
- Recheck ruby is using: gem env. In my case, all lines have ruby version 3 from brew
- Install ffi without arch x86_64 or Rosetta: sudo gem install ffi
- Install cocoapods: sudo gem install cocoapods
Make sure you exported PATH in your environment. I'm using zsh:
- open file config: open ~/.zshrc
- add these lines:
if [ -d "/opt/homebrew/opt/ruby/bin" ]; then export PATH=/opt/homebrew/opt/ruby/bin:$PATH export PATH=`gem environment gemdir`/bin:$PATH fi
- save the file and make it effective: source ~/.zshrc
Hope it will help someone face this problem
I'm having an error running 'pod install' after having 'ejected' an expo project
Installing unimodules: expo-app-auth@10.2.2 from ../node_modules/expo-app-auth/ios expo-application@3.2.0 from ../node_modules/expo-application/ios expo-barcode-scanner@10.2.2 from ../node_modules/
stackoverflow.com
sudo gem uninstall cocoapodssudo gem uninstall cocoapods-core
sudo gem uninstall cocoapods-deintegrate
sudo gem uninstall cocoapods-downloader
sudo gem uninstall cocoapods-plugins
sudo gem uninstall cocoapods-search
sudo gem uninstall cocoapods-trunk
sudo gem uninstall cocoapods-try
1 - sudo gem install cocoapods-clean
2 - pod deintegrate
3 - pod clean ( this is no longer available )
4 - pod installhttps://github.com/facebook/react-native/issues/31505#issuecomment-1045984970
'Read | Write > Tech' 카테고리의 다른 글
vscode platformIO Serial moniter not working (0) 2023.09.09 [react native] npm run android - SDK location not found. (0) 2023.08.24 상태바 설정 (0) 2023.08.22 react native 상태바 겹침 해결 (0) 2023.08.22 ngrok, snap install error (0) 2023.08.08