Home > Enterprise >  Do I need to install pod Firebase/Firestore if I have FirebaseFirestoreSwift installed?
Do I need to install pod Firebase/Firestore if I have FirebaseFirestoreSwift installed?

Time:10-05

I tried to run app with only FirebaseFirestoreSwift installed and it works as intended. But I'm trying to find a clear answer to this question because the most of the sources, tutorials or code examples have pod 'Firebase/Firestore' and pod 'FirebaseFirestoreSwift' both included in project's podfile.

CodePudding user response:

If you look at FirebaseFirestoreSwift's podspec (https://github.com/firebase/firebase-ios-sdk/blob/master/FirebaseFirestoreSwift.podspec), you'll see it lists FirebaseFirestore as a dependency. So, no, you don't have to explicitly include it yourself -- it'll get installed as a dependency by the system when you install FirebaseFirestoreSwift.

CodePudding user response:

In the link, it's including both the pods 'Firebase/Firestore' and 'FirebaseFirestoreSwift' and you can refer to the documentation where it has been mentioned that :

We recommend using CocoaPods to install the Firebase libraries. However, if you'd rather not use CocoaPods, you can integrate the SDK frameworks directly or use Swift Package Manager instead.

so you don’t have to explicitly install it.

For further information you can keep a check on the release notes where various updates in the versions and bug fixes have been explained briefly.

  • Related