Hello everyone,
I faced with a problem: when I try to use Firebase and FirebaseFirestoreSwift (installed via Xcode Package Manager, latest version) for Codable, - I got error for this part of code:
documents.compactMap({ QueryDocumentSnapshot -> User? in
return try? QueryDocumentSnapshot.data(as: User.self)
})
Value of type 'NSObject' has no member 'data'
By the way, I used official docs to import Firebase and FirebaseFirestoreSwift
import Foundation
import Firebase
import FirebaseFirestoreSwift
I tried to build my code via another IDEA (AppCode) - and it built it perfectly without any error.
When I tried to clear build cache I was getting next error:
No such module 'FirebaseFirestoreSwift'
But it is installed!
Please, help me to fix this issue
Maybe I am doing something wrong
Thank you all in advance