Question about CocoaPods and installing with podfiles

Hello Everyone,

I am new to app development and I am currently working on my own app. I’ve gone through a decent amount of Chris’s videos, even his Firestore demo which use cocoapods, but I still have another question. Once I install Cocoapods, is that system wide or does it have to be done in the directory of my app? I want to use this cardview that I found online and the installation says “Add this line to your podfile” I don’t have a podfile in my new app I am creating.

Please let me know if that question makes sense or if i need to explain more.

Thank you in advance for the help!

Hi Bill,

CocoaPods only needs to be installed once, for all the apps that will use it.

You create a podfile for each individual app by calling pod init from Terminal after you point Terminal to your app’s directory. Use a text editor to add the pod and then call pod install from terminal.

Hope that helps.

1 Like

Thank you! That is exactly what I needed. Appreciate the help.