![]() ![]() Close the project and open Terminal or iTerm. Tell Xcode where you want to save the project and click Create. Name your project and set Language to Swift. Open Xcode and create a new project based on the Single View App template. It's time to find out how CocoaPods can help us with Cocoa development. pod -versionĪt the time of writing, CocoaPods 1.4.0 is the latest stable release of the dependency manager. Both tools make it easy to switch between Ruby environments and they don't require you to use the sudo command to install CocoaPods.Įxecute the pod -version command to make sure the installation of CocoaPods was successful. I have used both and have settled with rbenv. I usually advise people to use a version manager for Ruby, such as RVM or rbenv. gem install cocoapodsĭepending on the configuration of your machine, you need to prefix this command with the sudo command. Open Terminal or iTerm and execute the gem install cocoapods command to install CocoaPods. Ruby and RubyGems should already be installed on your machine if you're running a recent version of macOS. Gems are best installed using RubyGems, a package manager for Ruby. ![]() Installing CocoaPodsĬocoaPods is written in Ruby and distributed as a gem. In this episode, you learn everything you need to know to get started with CocoaPods. If you're familiar with Bundler and RubyGems, then you won't have much difficulties understanding the concepts on which CocoaPods is built. With his background in Ruby, Eloy was inspired by Bundler and RubyGems. CocoaPods makes managing dependencies easy and transparent.Įloy Durán started with the development of CocoaPods in 2011. There are a handful of alternatives, such as Carthage and the Swift Package Manager, but CocoaPods is the most popular one. CocoaPods is a dependency manager for Cocoa projects.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |