0 創建 項目工程 ,及 podspec 文件。
1 pod lib lint // 測試 pod spec 文件 語法2 git tag 0.0.1 // 打tag
3 git push --tags
4 pod trunk register '[email protected]' 'xxx' --description='mac pro' // 註冊 pod 官方public 庫
5 pod trunk push xxxxxx.podspec// 推送到 pod 官方public 庫
請參考:
1、iOS開發-- 創建podspec文件,爲自己的項目添加pod支持
https://www.jianshu.com/p/d7d1942dd3f1
2 、Cocoapods 使用pod trunk發佈程序
http://blog.csdn.net/jeikerxiao/article/details/54377341