I've been trying to solve this error for quite some time and have not been successful. Anytime I try to Archive or Build my app, I keep getting UIKit, CoreFoundation, Darwin Foundation, "Could not build module" error.
I've tried cleaning DerivedData, re-installing Pods, re-installing XCode and I'm still stuck with this bug :(
react-native-cli: 2.0.1
react-native: 0.77.1
Image of Errors
I've been trying to solve this error for quite some time and have not been successful. Anytime I try to Archive or Build my app, I keep getting UIKit, CoreFoundation, Darwin Foundation, "Could not build module" error.
I've tried cleaning DerivedData, re-installing Pods, re-installing XCode and I'm still stuck with this bug :(
react-native-cli: 2.0.1
react-native: 0.77.1
Image of Errors
Share Improve this question edited Feb 17 at 23:59 Alejandro Irizarry asked Feb 17 at 23:57 Alejandro IrizarryAlejandro Irizarry 33 bronze badges New contributor Alejandro Irizarry is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct. 2- 1 What happens if you try with a different RN version? Also, is the new architecture flag enabled? If yes, consider turning it off. – tomerpacific Commented 2 days ago
- Yes try reverting back to 0.75.x versions without the new architetures, I had faced the same issue where I was facing these error in multiple RN pods. Reverting fixed things for me. – Aakarsh Kumar Commented 2 days ago
1 Answer
Reset to default 0I ended up migrating my React Native + Firebase project using the stable RN version 0.76.6 since the latest RN version 0.77.0 is causing a lot of RN issues. Also downgraded react-native-screens because its latest 4.7.0 version has a few issues causing builds to fail.
This was the only solution that actually worked for me after many attempts at different potential solutions. Thanks everyone, and for reference here’s a github discussion: https://github/facebook/react-native/issues/48462