Recently I moved from an Intel-based MacBook to a M1-based MacBook, and ever since I’m not being able to run this project, but it fails only on debug mode.
I get this message every time:
<FirebaseCore/FirebaseCore.h> file not found
However, on release mode, it compiles normally.
I’ve tried copying the project both directly from the old machine and from git.
I’ve already tried:
- Fully reinstalling Xcode from scratch
- Deleting Derived Data folder
- Cmd + Shift + K
- Reinstalling Pods
- "Find implicit dependencies" is checked on the Scheme settings
- I am working on the .xcworkspace and not on .xcodeproj
- Tried adding modular_header => true to Podfile
- Tried adding "arm64" to excluded architectures on build settings (both on the main project and on the pods project)
I’m using Mac OS Ventura (on both machines), as well as the latest Xcode (14.1)
The Firebase package is @react-native-firebase/app v15.6.0
Thanks
2
Answers
Update: I've managed to run the project on debug mode by opening Xcode with Rosetta. It's not the solution I wanted, since it's an Apple software running on an Apple processor, but it works for now.
Try to add the following lines of code in pod file.