cocoapods私有庫以及公有庫操作說明

私有庫/公有庫操作說明

校驗私有庫

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

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

推薦閱讀更多精彩內(nèi)容