https://github.com/CocoaPods/CocoaPods/wiki/Sharing-pod-specifications-with-yourself-and-the-world
指令
$ pod repo add my-spec-repo http://github.com/my-account/spec-repo.git
======== 我想應該是這樣用
https://github.com/CocoaPods/CocoaPods/wiki/Creating-and-maintaining-a-pod
先在自己的專案下 ex: xxxlib 下建立 一個 xxxlib.podspe
$ pod spec create xxxlib
接著編輯這個podsec
編輯後!!!
$ pod spec lint --local $ git add -A && git commit -m "Release 0.0.1." $ git tag '0.0.1' $ git push --tags
pod spec lint --local 只是先檢查格式對不對
接著commit 到git
然後加上tag
然後push到git server上
接著
$ pod push myspec
如果之前 有加入 pod repo add myspec xxxxx.git
那這裡就會自動更新 xxxxx.git server
然後接著 在重新載入到 seach list中
所以上面結束後再執行 pod search xxxlib
就可以看到他在 [myspec repo] 中了
沒有留言:
張貼留言