CocoaPods explained

CocoaPods
Author:Eloy Durán
Developer:Ben Asher, Dimitris Koutsogiorgas, Danielle Lancashire, Orta Therox, Paul Beusterien and Samuel Giddins
Latest Release Version:1.12.1
Latest Preview Version:[1]
Programming Language:Ruby
Platform:macOS, iOS, watchOS, tvOS
Genre:Package manager
License:MIT License

CocoaPods is an application level dependency manager for Objective-C, Swift and any other languages that run on the Objective-C runtime, such as RubyMotion,[2] 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.[3] They began development in August 2011[4] and made the first public release[5] 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.[6] It installs dependencies (e.g. libraries) for an application by specification of dependencies rather than by manually copying source files.[7] 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.[8] CocoaPods dependency resolution system is powered by Molinillo which is also used by other large projects such as Bundler, RubyGems, and Berkshelf.

Example

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

External links

Notes and References

  1. Web site: Releases · CocoaPods/CocoaPods . github.com . 2021-03-30.
  2. http://www.rubymotion.com/developer-center/articles/cocoapods/ Use CocoaPods Dependencies in RubyMotion Apps
  3. https://github.com/CocoaPods/CocoaPods/graphs/contributors CocoaPods contributors
  4. https://github.com/CocoaPods/CocoaPods/commit/fd2bc0a7cc4c49ddc37edb2a16398f8cfb06132e Initial work
  5. https://github.com/CocoaPods/CocoaPods/releases/tag/0.0.1 Initial release
  6. http://www.jetbrains.com/objc/whatsnew/ What's New in AppCode 2.5
  7. http://mobile.tutsplus.com/tutorials/iphone/streamlining-cocoa-development-with-cocoapods Streamlining Cocoa Development With CocoaPods
  8. https://github.com/CocoaPods/Specs The “master” spec repository