私有庫/公有庫操作說明
校驗私有庫
pod spec lint TXNulleSchoolTeacherLoginModule.podspec? --use-libraries --allow-warnings --verbose --sources='https://xxxx:xxxx@gitee.com/xxxx/txRepos,https://github.com/CocoaPods/Specs,https://gitee.com/xtzPioneer/TXSpecs’
發(fā)布私有庫
pod repo push TXSpecs TXNulleSchoolTeacherLoginModule.podspec --use-libraries --allow-warnings --verbose --sources='https://xxxx:xxxx@gitee.com/xxxx/txRepos,https://github.com/CocoaPods/Specs,https://gitee.com/xtzPioneer/TXSpecs’
注冊trunk
pod trunk register xtz_pioneer@163.com 'xtzPioneer' --description='macbook pro'
查看自己的信息
pod trunk me
校驗公有庫
pod spec lint PodName.podspec --use-libraries --allow-warnings --verbose?
pod spec lint --use-libraries --allow-warnings --verbose?
發(fā)布公有庫
pod trunk push PodName.podspec --use-libraries --allow-warnings --verbose
pod trunk push --use-libraries --allow-warnings --verbose
查看公有庫/私有庫
pod repo
添加私有庫/公有庫
pod repo add txRepos https://gitee.com/sunzhenglin/txRepos.git
pod repo add master https://github.com/CocoaPods/Specs.git
刪除庫
pod repo remove txRepos
使用方法
source 'https://github.com/CocoaPods/Specs.git'
source ‘https://gitee.com/XXX/txRepos.git'
項目中更新
pod update --verbose --no-repo-update
pod update --verbose
更新公有庫/私有庫
pod repo update --verbose
更新私/公有庫
pod repo update TXSpecs --verbose
pod repo update master --verbose
更新公有庫
pod setup --verbose
?如果搜索不到,不是沒有發(fā)布成功,是我們的本地搜索庫沒有更新 。
rm ~/Library/Caches/CocoaPods/search_index.json