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?
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.
It does not have to be a repo on GitHub. See the private pods guide for more info.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With