1

My iOS-App worked like a charm with Firebase 8.15.0.

Now I changed the Firebase package dependencies to version "9.0.0 - Next major" and get a lot of errors, which I can't link to the breaking changes related to this major release.

I already cleaned the build folder, restarted Xcode and my MacBook, but nothing helped.

Most likely the underlying problem has to do with the warning "Could not read serialized diagnostics file: error("Invalid diagnostics signature")":

Build Errors

Kuhlemann
  • 3,066
  • 3
  • 14
  • 41
  • Try removing DerivedData. See https://stackoverflow.com/questions/62566649/could-not-read-serialized-diagnostics-file-invalid-file-invalid-diagnostics-si – Paul Beusterien May 14 '22 at 13:45
  • Thank you for your tip, but I removed DerivedData, removed and reinstalled Firebase from SPM and even did a fresh Xcode installation. I also tried all other tips from your link. The errors are still the same. The same code with Firebase 8.15.0 compiles fine. – Kuhlemann May 15 '22 at 11:26
  • Are you able to share a reproducible example? – Paul Beusterien May 16 '22 at 14:46
  • Yep, an issue at https://github.com/firebase/firebase-ios-sdk/issues would be perfect – Paul Beusterien May 16 '22 at 15:03

1 Answers1

0

With the help of Google we found out that there are cases where using "import FirebaseFirestoreSwift" is not enough when using FireStore, but "import FirebaseFirestore" has to be added to the file too.

Even if you did not add "FirebaseFirestore" as a Swift Package this will compile then.

Kuhlemann
  • 3,066
  • 3
  • 14
  • 41