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

发布私有库

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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容