Pod 私有倉庫
1、注冊:
pod trunk register 郵箱地址 用戶名 --description=描述信息
eg:??pod trunk register abc@qq.com nick5683?--description=描述信息
2拾因、查看個人信息
?pod trunk me
1罢维、添加tag并推送到遠(yuǎn)端
git tag 1.3.2 && git push origin 1.3.2
2、驗證
--allow-warnings
pod lib lint
#這一步一定不能少
pod spec lint?
3空闲、?提交pod 到Specs倉庫
pod trunk push MQChat.podspec --allow-warnings
#刪除指定版本(即:pod trunk delete 庫名 版本號)
pod trunk delete MQChat 0.1.0
你也可以放棄整個POD和所有版本:
?pod trunk deprecate MQChat?
發(fā)布完成后清除本地搜索緩存令杈,重新建立索引
pod cache clean --all
rm ~/Library/Caches/CocoaPods/search_index.json?
pod setup?
?pod search MQChat
4、刪除公共pod -
pod repo remove MQChat.podspec
5碴倾、
創(chuàng)建私有倉庫
pod repo add NKSpecs https://gitee.com/nick/NKSxxx.git
添加新module到私有倉庫
pod repo push NKSpecs NKAdManager.podspec --use-libraries --allow-warnings
pod spec lint NKAdManager.podspec? --sources="https://gitee.com/nick/NKSxxx,https://gitee.com/mirrors/CocoaPods-Specs.git" --allow-warnings
pod repo push --sources="https://gitee.com/nick/NKSxxx"? NKSxxx NKAdManager.podspec --allow-warnings
//更新pod庫
pod repo push --sources="https://gitee.com/nick/NKSxxx"? NKSxxx NKAdManager.podspec --allow-warnings
pod repo push --sources="https://gitee.com/nick/NKSxxx"? NKSxxx NKAdManager.podspec --allow-warnings? --use-libraries
pod repo push NKAdManager.podspec? --sources="https://gitee.com/nick/NKSxxx,https://gitee.com/mirrors/CocoaPods-Specs.git" --allow-warnings
———————————————————————————————————————————
批量刪除 tag
git tag -l| awk '/rc_[0-9]{1}[0-9]{0,}$/ {print? $1}' | xargs git tag -d
刪除所有tag
刪除遠(yuǎn)程標(biāo)簽(刪除本地標(biāo)簽之前)只需執(zhí)行以下操作:
git tag -l | xargs -n 1 git push --delete origin
然后刪除本地副本:
git tag | xargs git tag -d
——————————————————————————————————————————