iOS 私有pods搭建

168 阅读1分钟

1.创建本地库名字

pod lib create ZLNetwork

2.查看本地repo,进行添加

pod repo
pod repo add YHSpecs https://gitlab.com/ZLNetwork/ZLNetwork.git

3.提交commit信息,打tags推送到gitlab

git commit -am 'first commit msg'
git push origin master -f
git tag ‘0.0.1’
git push —tags

4.本地校验,推送到远端repo

pod lib lint
pod repo push https://gitlab.com/ZLNetwork/ZLNetwork.git ZLNetwork.podspec --verbose --allow-warnings

5.关联库和本地使用

pod "ZLNetwork", :path=>"submoduls/ZLNetwork"
pod 'ZLNetwork' , '~> 0.0.1'
s.dependency 'ZLNetwork', '0.0.1'