I wanted to implement the Firestore Database. In my Podfile I added pod 'Firebase/Firestore'
and did pod install
. When trying to use let db = Firestore.firestore()
I get the Error:Use of unresolved identifier 'Firestore'
. I have tried pod update too and it also says Using FirebaseFirestore (0.12.2)
but it soll doesn't work. What should I do?
You need to import it.
Include import FirebaseFirestore
at the top of your manager file.
I had to add pod 'Firebase/Firestore'
to the podfile and then reinstall the podfile.
If my guess is right. pod 'Firebase/Firestore' was installed after appname.xcworkspace was created by already installing pod once. One solution is to remove all these ****appname.xcworkspace, ****Podfile.Lock, ****Pods Folder and install pod once more. it should work.
I solved the problem following this: https://stackoverflow.com/a/44486792/9547658
I don't know why it didn't worked in the first place but now it works...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With