Multiple errors, potentially from Firebase pods?

I get multiple builtime errors regarding this, only on occasion, but typically when I close Xcode and reopen it after a while. I'm opening an xcworkspace file (since I have a couple pods installed, like FirebaseAnalytics and FirebaseAuth, to name a few), and I get errors about Lexical or Preprocessor Issue, in regards to pb.h in multiple files. Has anyone else seen issues like this? I'm building for an iPhone 11 Pro on Xcode 12 beta. Specifically, this I sharpening in nanopb-umbrella.h, pb_common.h, pb_decode.h, and consequently because these aren't failing, nanopb is not building, resulting in cct.nanopb.h not finding the module of nanopb.

I've tried reopening/closing the project, rebuilding the project and cleaning out the build folder, and doing a pod install, all to no avail.

For reference, here are the current pods im using, if it makes a difference:

Code Block
Firebase/Analytics
Firebase/Auth
BRYXBanner
Firebase/Firestore


Any help would be appreciated. Thank you in advance!

Answered by kabhyank in 617024022
I was able to resolve this; I believe the error was due to a corrupted pod, but I'm not sure how that happened.

Either way, the following process is how I resolved it, at least temporarily:

  1. Delete the Pods folder

  2. Delete the Pod file

  3. Rebuild your project (it will crash, since pod dependencies are expected, but can't be fulfilled)

  4. pod install

  5. clean build folder

  6. rebuild again, and then this should get you in a semi-working state.

Hope this helps! If there is a more concrete solution, it will help as well.

Accepted Answer
I was able to resolve this; I believe the error was due to a corrupted pod, but I'm not sure how that happened.

Either way, the following process is how I resolved it, at least temporarily:

  1. Delete the Pods folder

  2. Delete the Pod file

  3. Rebuild your project (it will crash, since pod dependencies are expected, but can't be fulfilled)

  4. pod install

  5. clean build folder

  6. rebuild again, and then this should get you in a semi-working state.

Hope this helps! If there is a more concrete solution, it will help as well.

Multiple errors, potentially from Firebase pods?
 
 
Q