Why should you use CocoaPods?

This blog post has the intention to show to beginners the tool called CocoaPods, if you’re already familiar with it you may find it boring because I’ll probably show you something you already now.

What’s CocoaPods?

“CocoaPods is a dependency manager for Swift and Objective-C Cocoa projects. It has over 37 thousand libraries and is used over 2.6 million apps. CocoaPods can help you scale your projects elegantly.”(CocoaPods)

If you’re familiar with Rails, you may remember the Gemfile system, and yes, it works just like that. In fact CocoaPods is a gem for Ruby. You can contribute for the project by sending a pull request on the official repository.

 

The advantages of using CocoaPods

You are ready to develop your first iOS project, you’re full of ideias, at first having a dependency manager seems to be pretty not necessary, but remember, you app won’t be the same after every update, in fact, if you’re planning to build the next successful app, you may need starting worrying about how to organize it, this where CocoaPods comes in.

Managing a project dependencies by hand it is not the best ideia, actually, it is a terrible idea, imagine having a project with 50 dependencies and having to update all of them ? Scary huh ? That’s the reason you need a project manager, with CocoaPods if you want to update a pod(That’s how a dependency is called in CocoaPods, like a gem in Ruby) you just need to type:

pod update the_name_of_the_pod

and it will do all the work for you, after that you just need to recompile your project on XCode, and that’s all.

Another reason to use CocoaPods is: a lot of big companies are using it, like Facebook , Google and many others.

You have a lot of support, there are thousands of apps using it, and Stackoverflow if full of questions about it.

Acknowledgment

Thanks for reading this post, it is always a pleasure writing for you guys. If you like what you just read and somehow you want to support me, you can become a Patreon . Being my Patreon makes you get my private posts about programming with iOS and Ruby.

If you’d like to know more about me or what I do, you can follow me on Instagram or Twitter .

See you next time!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s