[TOC]
本文默认读者已经装好了cocoapods环境,拥有github账户的前提。
1 首先在github上创建一个空的git库,如 PrivateSpecs
2 利用如下命令创建私库
pod repo add PrivateSpecs git@github.com:liuzewen/PrivateSpecs.git
3 查看是否创建成功
pod repo list
4 看到如上截图 ,恭喜你创建成功啦!
5 向私库添加pods私库
pod repo push ‘私库名’ XXXXXXXXX.podspec