前言
提交自己代码到 CocoaPods 的步骤
注册trunk
1
| pod trunk register emailAddress 'username' --verbose
|
点击邮件链接完成注册。
pod trunk me
查看是否注册成功。
创建PodSpec
1
| pod spec create LWChannelManager
|
修改 PodSpec
修改LWChannelManager.podspec文件内容。需要注意 s.source_files 是相对于 .podspec 的路径。
添加LICENSE
提交github
1 2 3 4 5
| git add . git commit -m 'message' git tag '1.0.0' git push --tags git push origin master
|
Pod验证
1 2
| set the new version to 1.0.0 set the new tag to 1.0.0
|
如果正常的话提示验证通过。
提交CocoaPods
1
| pod trunk push LWChannelManager.podspec
|
修改代码
重复步骤 修改 PodSpec 到 提交 CocoaPods