![]() Below error you will get (Refer image 4), so make sure your Podfile is with the. xcodeproj file you will not get success to get the library via pod. If you didn't put your Podfile with your. Here '0.9' indicates the version no, if you left the version number empty CocoaPods will use the latest version available. You can add optional version number for library. for example:Ī pod is keyword followed by the name of library. The simple editor open in command line add your dependency here. Now open terminal and change directory to your project directory. There are so many third party library available on cocoa pods but for this tutorial we will use SVProgressHUD - A awesome library to create custom activity HUDs for iOS Application, More information about this library you will get here( ette/SVPro gressHUD). Now we will go for install our first dependency for project. Open Xcode -> File -> New -> Project - > Select Single View ApplicationĪfter creating the project your project structure is look like below image (Refer image3).Ĭlose the Xcode project. Integrating Cocoapods with an Xcode projectĬreate new Xcode project. Now, install cocoa pods by typing below command in Terminal For that open the Terminal from Launchpad > Utilities > Terminal on MAC. Refer the below image 1 for Xcode preference menu. Before starting make sure you installed command line tool from Xcode preference menu. MAC OS X all version by default installed the Ruby. You only need to specify which dependencies, or pods, you want to include in your project and CocoaPods takes care of the rest.Ĭocoapods runs on Ruby, to install & manage it easily. ![]() CocoaPods makes managing a project’s dependencies much easier. ![]() When working with third party libraries for iOS and OS X project, its hard to manage it manually. For get in to deep in cocoa pods you must have prior knowledge of the Xcode and command line Tool. There are plenty of open source libraries now available with CocoaPods. ![]() By using cocoa pods there is no need of downloading the code from github and copying to your project. CocoaPods is the best way to manage library dependencies in iOS and OS X projects. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |