CocoaPods

Cocoa 依赖管理器。(The Cocoa dependency manager.)

Github stars Tracking Chart

CocoaPods 是 Swift 和 Objective-C Cocoa 项目的依赖管理器。 它拥有超过33000个库,用于超过220万个应用程序。 CocoaPod 可以帮助您优化您的项目。

CocoaPods管理Xcode项目的库依赖。您的项目的依赖项在一个称为Podfile的文本文件中指定。 CocoaPods将解析库之间的依赖关系,获取生成的源代码,然后在Xcode工作区中将其链接在一起构建项目。最终目标是通过创建一个更集中的生态系统来提高第三方开源库的可发现性和参与度。
CocoaPods是用Ruby构建的,可以在OS X上安装默认的Ruby。我们建议您使用默认的ruby。
使用默认的Ruby安装可能需要您在安装gem时使用sudo。 有关安装说明请参考指南。
# Xcode 7 + 8$ sudo gem install cocoapods

官方还有一个适用于CocoaPod的Mac app。 不过,它只有主要版本的ATM。

Overview

Name With OwnerCocoaPods/CocoaPods
Primary LanguageRuby
Program languageRuby (Language Count: 1)
PlatformMac
License:Other
Release Count228
Last Release Name1.15.2 (Posted on 2024-02-06 10:12:35)
First Release Name0.0.1 (Posted on 2011-09-17 22:18:57)
Created At2011-08-14 00:10:53
Pushed At2024-04-19 07:54:17
Last Commit At2024-04-16 15:50:38
Stargazers Count14.4k
Watchers Count552
Fork Count2.6k
Commits Count9.5k
Has Issues Enabled
Issues Count10041
Issue Open Count581
Pull Requests Count1684
Pull Requests Open Count56
Pull Requests Close Count423
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

CocoaPods Logo

CocoaPods: The Cocoa dependency manager

Build Status
Gem Version
Code Climate

CocoaPods manages dependencies for your Xcode projects.

You specify the dependencies for your project in a simple text file: your Podfile.
CocoaPods recursively resolves dependencies between libraries, fetches
source code for all dependencies, and creates and maintains an Xcode
workspace to build your project. The latest released Xcode versions and the
prior version are supported.

Installing and updating CocoaPods is very easy. Don't miss the Installation
guide
and the
Getting Started guide.

Project Goals

CocoaPods aims to improve the engagement with, and discoverability
of, third party open-source Cocoa libraries. These
project goals influence and drive the design of CocoaPods:

  • Create and share libraries, and use them in your own projects,
    without creating extra work for library authors. Integrate
    non-CocoaPods libraries and hack on your own fork of any
    CocoaPods library with a simple transparent Podspec standard.
  • Allow library authors to structure their libraries however they like.
  • Save time for library authors by automating a lot of Xcode work not
    related to their libraries' functionality.
  • Support any source management system. (Currently supported are git,
    svn, mercurial, bazaar, and various types of archives downloaded over HTTP.)
  • Promote a culture of distributed collaboration on pods, but also provide
    features only possible with a centralised solution to foster a community.
  • Build tools on top of the core Cocoa development system, including those
    typically deployed to other operating systems, such as web-services.
  • Provide opinionated and automated integration, but make it completely
    optional. You may manually integrate your CocoaPods dependencies
    into your Xcode project as you see fit, with or without a workspace.
  • Solve everyday problems for Cocoa and Xcode developers.

Sponsors

Lovingly sponsored by a collection of companies, see the footer of CocoaPods.org for an up-to-date list.

Collaborate

All CocoaPods development happens on GitHub. Contributions make for good karma and
we welcome new contributors with joy. We take contributors seriously, and thus have a
contributor code of conduct.

@CocoaPods, Follow CocoaPods on Twitter to stay up to date.
Blog, The CocoaPods blog.
Mailing List, Feel free to ask any kind of question.
Guides, Everything you want to know about CocoaPods.
Changelog, See the changes introduced in each CocoaPods version.
New Pods RSS, Don't miss any new Pods.
Code of Conduct, Find out the standards we hold ourselves to.

Projects

CocoaPods is composed of the following projects:, Status, Project, Description, Info, :-----, :------, :---, :---, Build Status, CocoaPods, The CocoaPods command line tool., guides, Build Status, CocoaPods Core, Support for working with specifications and podfiles., docs, Build Status, CocoaPods Downloader, Downloaders for various source types., docs, Build Status, Xcodeproj, Create and modify Xcode projects from Ruby., docs, Build Status, CLAide, A small command-line interface framework., docs, Build Status, Molinillo, A powerful generic dependency resolver., docs, Build Status, CocoaPods.app, A full-featured and standalone installation of CocoaPods., info, Master Repo , Master repository of specifications., guides

To the top