source倉庫
gitlab上建立MyPodSpecs.git
terminal
# pod repo add [Private Repo Name] [GitHub HTTPS clone URL]
$ pod repo add MyPodSpecs https://xxx/MyPodSpecs.git
私有庫
- 創(chuàng)建私有庫
pod lib create MyLib
- 提交至服務器
git add .
$ git commit -s -m "初始化MyLib 庫"
$ git remote add origin git@xxx/MyLib.git #添加遠端倉庫
$ git push origin master #提交到遠端倉庫
$ git tag -m "first release" "0.1.0" #打上標簽壁畸,這個很重要
$ git push --tags #推送tag到遠端倉庫
編輯私有庫的podspec,加入相關依賴庫
校驗私有庫
# --use-libraries 包含靜態(tài)庫
pod lib lint --use-libraries --allow-warnings
- 推送遠程source庫
pod repo push MusicPodSpecs MusicUMeng.podspec --allow-warnings --use-libraries