CocoaPods

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
CocoaPods
Original author(s)Eloy Durán
Developer(s)Ben Asher, Dimitris Koutsogiorgas, Danielle Tomlinson, Orta Therox, Paul Beusterien and Samuel Giddins
Stable release
1.5.3
Preview release
1.6.0.beta.2
Written inRuby
PlatformmacOS, iOS, watchOS, tvOS
TypePackage manager
LicenseMIT License
Websitecocoapods.org

CocoaPods is an application level dependency manager for the Objective-C, Swift and any other languages that run on the Objective-C runtime, such as RubyMotion,[1] that provides a standard format for managing external libraries. It was developed by Eloy Durán and Fabio Pelosin, who continue to manage the project with the help and contributions of many others.[2] They began development in August 2011[3] and made the first public release[4] on September 1, 2011. CocoaPods is strongly inspired by a combination of the Ruby projects RubyGems and Bundler.

CocoaPods focuses on source-based distribution of third party code and automatic integration into Xcode projects.

CocoaPods runs from the command line and is also integrated in JetBrains' AppCode integrated development environment.[5] It installs dependencies (e.g. libraries) for an application by specification of dependencies rather than manual copying source files.[6] Besides installing from many different sources, a “master” spec repository—containing metadata for many Open-Source libraries—is maintained as a git repository and hosted on GitHub.[7] CocoaPods dependency resolution system is powered by Molinillo which is also used by other large project such as Bundler, RubyGems and Berkshelf.

Example[edit]

The following Podfile example installs the AFNetworking and CocoaLumberjack libraries:

 platform :ios
 pod 'AFNetworking',    '~> 2.0.0'
 pod 'CocoaLumberjack', '< 1.7'

 target 'MyApp'

See also[edit]

References[edit]

External links[edit]