1、注冊trunk
pod trunk register ***@163.com 'name' --description='add env'
pod trunk me//查看自己的注冊信息
如果是多個人,添加管理者
pod trunk add-ownerARAnalyticskyle@cocoapods.org
2、創建pod spec
pod spec create a.podspec
3、把你的源碼push到github上,tag一個版本號并且發布一個release版本,這樣podspec文件中的s.source的值才能是準確的。
git tag'1.0.0'
git push --tags
4、提交
pod trunk push
https://guides.cocoapods.org/making/getting-setup-with-trunk.html