CocoaPods App: The NEW CocoaPods OS X App

In this lesson

Today, May 11, 2016, CocoaPods has released version 1.0.0 of their OS X application. After many years of command line CocoaPods, I am excited to walkthrough the app with you and start using it in every day development with Swift and Objective-C.

Kyle Roberts
Swift Guru at Large

Kyle's Series

Transcript

Tap on time to skip ahead

00:10

Hello, world. Kyle here with Brax.tv and the CocoaPods app has just released with version 1.0.0. Right now I’m on CocoaPods.org/app. Got there just by the App tab up there. This is pretty cool because, for the past five years, at least a few of those I’ve been using CocoaPods, it has been strictly a command line tool. Now that it is it’s own OS X application, that’s pretty exciting and hopefully that will make CocoaPods a little more accessible for maybe people unfamiliar with the command line tool or the command line API. There’s some other benefits here on this page other than just being easy to use in general. And even easier to than it is to use through the command line. To download and install and go through a typical app install process, I think this downloads a zip and you unzip it and the application is there.

01:09

When you first open the CocoaPods app, there will be a spotlight of Podfiles that CocoaPods has found for you to edit, as well as a Recent tab that has any Podfiles that you have been working in lately. We’re going to be working with my SteamReader Podfile. Over here is just a few links to different places on CocoaPods.org. Or this What’s New button that actually takes you to the releases page on the CocoaPods GitHub.

01:35

When you open a Podfile from CocoaPods, you’re actually taken to an editing window where you can edit your Podfile. What’s great is there are no smart quotes. It wouldn’t really make sense for a CocoaPods app to use smart quotes. This is my Podfile for SteamReader. We can just add whatever pods we want. Newpod.

01:59

This next tab on the left is actually a command log output section. Since we haven’t run anything yet there’s nothing here. It says your Podfile’s ready to go. Hit install to see the outcome. Let’s hit install and see what happens. There’s also a few other options up here other than install. There’s install, update, and then a verbose version of each.

02:21

As its installing its going to be just logging anything that’s going on and the status of your pod install. It looks like things are going well so far. It’s installed all the Pod versions that we’re looking for and generating the Pods project. I’m sure if we threw some sort of syntax error in here then it would catch it and print this out to us. The Pod installation is complete and without having to type any commands. All we had to do was open up the Podfile, make sure everything looked good, maybe make any edits if we want to, and then hit install. Here’s those other installation options in case you were wondering.

02:57

Let’s check out the Info tab. This just has some info on the current Xcode project for the Podfile that we’re looking at, as well as some information on the actual CocoaPods status. You see that we’re targeting iOS 9, showing all warnings from CocoaPods and link to a specific Pods project. Just a list of the Pods that we have installed with links to go to their CocoaPods page.

03:25

That’s pretty awesome. I’m digging it so far. It’s pretty great in just the fact that you can edit the Podfile easily and it looks nice straight from the app and then install just like that. It’s pretty awesome and I’m not even in the code right now. This is just all in the CocoaPods app. So get out there and start downloading some packages!

Additional Info

Register to get access to additional resources and info.