Once you have navigated to your project do a “ pod init”, this will create a Podfile in your project folder (make sure to do this just outside of the project files) Step 4: Note: You do not need to have the project open, It is just kept it open in this example to make it clearer Step 3: Once our project is ready just open a terminal and navigate to the project folder Once we have selected our pods we should now create/open the project that we want to integrate the pod to. Once we complete setting up are cocoapods we should be ready to add a third party library to our project, you can use to browse the available libraries, for this example we’ll be using NavigationDrawer, so let’s go ahead and open it the page Go back to your terminal and follow to command “ sudo gem install cocoapods” it will then ask for to provide your password in order to continueĪnd that’s it! after it completes you should be ready to use cocoapods in your system now. Then open and scroll down to see the instructions for setting up Step 3: To make sure that cocoapods is installed open a Terminal app on your computer Step 2: This guide will help you to set up your first project cocoapods powered project. It is in essence, an app that helps integrate third party repositories in your projects. It focuses on source-based distribution of third party code and allows automatic integration to your Xcode projects. What is it and what does it do? Cocoapods is an application level dependency manager that runs on objective-c, swift, and any other programming languages that run on Objective-C. Somewhere along your iOS development journey you will come across the term cocoapods or pods.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |