Oleksandr Matrosov
Oleksandr Matrosov

Reputation: 27191

Storing CocoaPods libraries in own Git repository

Usually we don't store CocoaPods libraries on our Git repositories. Though sometimes it can be a good option if someday you figure out that there are no Git repositories of some libraries. What is the best solution in this case?

Upvotes: 0

Views: 50

Answers (1)

Ole Begemann
Ole Begemann

Reputation: 135588

You can specify different paths or Git URLs to the pods in your Podfile. So you can fork the repositories of the pods in question on GitHub (or host them on your own Git server) and then change the URLs in the Podfile like this:

pod 'AFNetworking', :git => 'https://github.com/gowalla/AFNetworking.git'

or:

pod 'AFNetworking', :path => '~/Documents/AFNetworking'

See The Cocoapods Podfile guide for more information.

Upvotes: 2

Related Questions