CocoaPods

Uses your system voice; voice and rate in settings.

Q16247893Snapshot

≈ 4 min read

Names in other languages

  • caCocoaPods
  • DeutschCocoaPods
  • EnglishCocoaPods
  • EspañolCocoaPods
  • FrançaisCocoaPods
  • ItalianoCocoaPods
  • PortuguêsCocoaPods
  • RomânăCocoaPods

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

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, 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. They began development in August 2011 and made the first public release on September 1, 2011. CocoaPods is strongly inspired by a combination of the Ruby projects RubyGems and Bundler.

It claims to have over 103 thousand libraries and to be used in over 3 million apps. 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. It installs dependencies (e.g. libraries) for an application by specification of dependencies rather than by manually copying source files.

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. CocoaPods dependency resolution system is powered by Molinillo which is also used by other large projects such as Bundler, RubyGems, and Berkshelf.

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, 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. They began development in August 2011 and made the first public release on September 1, 2011. CocoaPods is strongly inspired by a combination of the Ruby projects RubyGems and Bundler.

It claims to have over 103 thousand libraries and to be used in over 3 million apps. 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. It installs dependencies (e.g. libraries) for an application by specification of dependencies rather than by manually copying source files.

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. 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', '

Security

In July 2024, CocoaPods has been found to have multiple security vulnerabilities that could allow attackers to take control of unclaimed software packages and inject malicious code into applications. These issues have since been patched, but they exposed millions of iOS and macOS apps to supply chain attacks for an estimated period of 10 years.

Maintenance mode

In August 2024 the project transitioned into maintenance mode after 13 years. With the announcement of Swift Package Manager (SPM) by Apple in 2015, maintainers' ties to the project weakened, with updates driven mostly by security fixes or Xcode compatibility issues. Despite this, CocoaPods' usage has continued due to its role in frameworks like React Native and Flutter, though many users are currently unaware of its existence or inner workings. With Apple's SPM as its successor and declining active development, the CocoaPods team is now reassessing the project's future and maintenance approach.

See also

List of build automation software List of software package management systems Xcode RubyGems

External links

Eloy Durán GitHub page

Text derived from https://en.wikipedia.org/w/index.php?oldid=1326614627 under CC BY-SA 4.0; modifications have been made.

Provenance

snapshot cocoapods-1770127-48e27c119dc46495 · hash 48e27c119dc464956fb19231823494460511a0bb656f0e90502b479ae34c5ff6 · captured 1765316927.0 · version history

Cite this page as: encyclopegia.org, “CocoaPods”, snapshot cocoapods-1770127-48e27c119dc46495. https://encyclopegia.org/a/cocoapods

Sources cited in this revision

13 named source(s) extracted from the cited revision. A source with no author is shown by its publication; nothing is invented.