使用 pods 私有库管理私有 pods

#####私有库(Repo)使用步骤如下:
1、建立私有 Spec 库
建立一个 git 库即可,需要有 master 分支
2、添加私有库到 CocoaPods 里

1
$ pod repo add REPO_NAME REPO_SOURCE_URL

3、添加 Podspec 到私有库

1
$ pod repo push REPO_NAME SPEC_NAME.podspec

4、移除私有库

1
$ pod repo remove REPO_NAME

5、检查私有库,push 的时候会自动检查

1
$ pod repo lint REPO_NAME

6、Podfile 使用私有库
在 Podfile 里加一行 source ‘REPO_SOURCE_URL’

#####创建一个 Pod
$ pod lib create POD_NAME
或者自己手动建立工程、编辑Spec
【pod spec create 用来单独建立一个 Spec】