Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Difference between cocoapods and Github downloads?

I noticed when completing some courses that both cocoapods and files from github were used to make things easier. Although, to me they both look the same; does it matter which one I use? I can see that cocoapods don't get included in the final product files which makes me think they are better than using github libraries.

???

1 Answer

cocoa pods really just make it easier to manage/use external libraries and dependencies. Instead of having to download files from github and import them all you have to do is place the name of the pod in your podfile and run the pod command. Cocoapods also separates the dependencies from your project through the workspace it creates when you run the pod command. It also makes it easy to update those pods with a single command as well. Its worth noting that there isnt a cocoapod for everything though.

In short, you should probably learn to use (and love!) cocoa pods. It makes things easier and seems to be the direction people are going.