Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating private cocoapods repo outside github

We are working on projects which use both open-source libraries and our private libraries which can't go public. By public I mean, that they can't be hosted outside our company servers. We would like to use CocoaPods for all of them. While using open-source libs is pretty easy, my question is if I can use private repository on our private servers to host our private libs? I've found this link http://guides.cocoapods.org/making/private-cocoapods.html, and there is no information weather it has to be github or it can be any server, however I was also looking for solution on other pages and everybody say that I has to be repo on github. Is it true?

like image 381
pawel.kalisz Avatar asked Mar 10 '14 11:03

pawel.kalisz


People also ask

How do I create a Podspec file?

To create a Podspec, navigate to your project file in the Terminal. Run the following command to create the file: touch FantasticView. podspec . Now open the file using an editor.


2 Answers

It does not have to be a repo on GitHub. See the private pods guide for more info.

like image 176
alloy Avatar answered Sep 22 '22 06:09

alloy


Just add a new local repo and configure the remote as needed:

mkdir ~/.cocoapods/repos/private
cd ~/.cocoapods/repos/private
git init
git commit -m Initial
git remote add origin https://myremote.org
git push -u origin master
like image 26
Chris Devereux Avatar answered Sep 19 '22 06:09

Chris Devereux