'Why can't I compile my React-native apps anymore?
I'm gonna ask your guidance/help for a problem I've been encountering for several days now,
I can create a new react native project (via npx react-native init projectName), but when I try to run it, either with npx react-native run-ios or yarn ios, I get the following error message:
The following build commands failed: CompileC /Users/user/Library/Developer/Xcode/DerivedData/Trickster-ejsutjhruuvmqjedsaarumhaquan/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RCT-Folly.build/Objects-normal/x86_64/SysUio.o /Users/user/Dev/Mobile/React
Native/Trickster/ios/Pods/RCT-Folly/folly/portability/SysUio.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'RCT-Folly' from project 'Pods')
I've already cleaned yarn/npm cache, cleaned Xcode's DerivedData folder, even uninstalled node and react native from my computer, so I'm kinda lost tbh.
Here are my specs: MacBook Pro Mid 2014 with a 2.6GHz Core i5, 8Gbs of ram running macOS Monterey 12.2.1 npm version 8.5.2, 1.22.17 and Xcode 13.2.1.
Sorry in advance if I don't answer fast, I'm a bit ill atm so kinda occupying my time till I'm better
Solution 1:[1]
Try running Project from Xcode that will show you where problem exactly is
Solution 2:[2]
This problem can be for several reasons. To avoid going into so much explanation If the application worked at some point
- Delete the app in the device and
runyarn androidornpm androidor - delete the build folder and delete the app in the device and
runyarn androidornpm androidor - on Android delete and reinstall the device then
runyarn androidornpm android
That's works for me
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Bhavya Koshiya |
| Solution 2 | greybeard |
