Pod 1.8+制作 pod库教程
2020-02-20 本文已影响0人
格雷s
1.创建spec
pod spec create GLCollectionLayout
2.编辑spec
3.添加git代码仓库
4.打tag
git tag “1.0.7”
git push --tags
5.验证spec
pod spec lint GLCollectionLayout.podspec --verbose --allow-warnings
Lint后,可能会创建trunk分支,完成后pod repo remove trunk
6.准备上传cocoapods仓库
查看trunk信息:
pod trunk me

如果没有注册,需要先注册:
pod trunk register xxx@qq.com "gelei" --verbose
注册后需要去邮箱点击链接验证
验证完后查看trunk信息
7.上传:
pod trunk push GLCollectionLayout.podspec --allow-warnings

8移除trunk
pod repo list
pod repo remove trunk