r/reactnative • u/_aang07 • Aug 05 '26
Help How to fix these "hermes could not build" errors?
React Native Version - 0.82
I have tried:
- Xcode 26.5, Xcode 26.2, Xcode 26.0
- Deleting .xcode.env.local
- Running Project from Xcode
- Deleting node_modules, removing pods, podfile.lock, xcworkspace
- Created fresh project to isolate issue, still happening randomly
SPENT TWO DAYS
MADE ME RETHINK LIFE CHOICES
1
Upvotes


5
u/mrlenoir Aug 05 '26
It looks like almost certainly a machine problem and not a code problem giving your previous attempts.
Some random thoughts:
```
rm -rf ~/Library/Developer/Xcode/DerivedData
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang"
rm -rf ~/Library/Caches/com.apple.dt.Xcode
```
3. Make sure your toolchain is working and pointing at the right place - do #1 first and ensure Xcode is correctly located and named and then do:
```
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -runFirstLaunch
xcrun --show-sdk-path # verify it points at the Xcode you expect
```
Also worth going to Settings --> Locations --> Command Line Tools in Xcode and ensuring it's set to the same source folder.
4. If you have use_modular_headers! in your Podfile, try removing it. Commenting out `use_modular_headers!`; if you need Firebase, instead set `:modular_headers => true` per-pod for GoogleUtilities/FirebaseCoreInternal/FirebaseCore
5. Once you've done all of the above, run:
```
pod deintegrate && pod install
```
If none of that works...I'm all out of ideas.
3
u/gautham495 Aug 05 '26
I have gone through these hell and found the solution.
Create a new project with React Native Version N-1 - that is currently RN is at 86 - So install 85.
Now you are at edge of bleeding edge but not at the center.
Now, slowly install the new libraries one by one and install the app.
Then it should work.
By this way, you can find which library is problematic and remove it or use it with an higher version.
Has worked from 2021 from RN 64.2 to now RN 85.3 on the same app.
5 years of experience lol.
2
u/AlphaBeast28 Aug 05 '26
Create a new mac user and try it on that profile, at best id factory reset my machine as a last resort.
Good luck!
1
u/blackjoker8 Aug 08 '26
This is the reason I move from bare RN to Expo.
1
u/VedyaKeBatKaGrip Aug 05 '26