私有库/公有库操作说明
校验私有库
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’
发布私有库
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
发布公有库
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
如果搜索不到,不是没有发布成功,是我们的本地搜索库没有更新 。
rm ~/Library/Caches/CocoaPods/search_index.json