pod 组件

含第三方库的组件

本地检测代码仓库是否有问题

pod lib lint xxx.podspec --allow-warnings --use-libraries

远程检测代码仓库是否有问题

pod spec lint xxx.podspec --allow-warnings --use-libraries

向远程代码索引库提交spec

pod trunk push xxx.podspec --allow-warnings --use-libraries

不含第三方库的组件

//本地检测代码仓库是否有问题
pod lib lint --allow-warnings --verbose

//远程检测代码仓库是否有问题
pod spec lint --allow-warnings --verbose

//向远程代码索引库提交spec
pod trunk push xxx.podspec --allow-warnings --verbose

私有库依赖私有库的

验证远程spec文件是否有问题
pod spec lint WYLoginModule.podspec --sources='https://gitee.com/BIMComponent/BIMRepo.git,https://github.com/CocoaPods/Specs.git' --allow-warnings --use-libraries 

pod spec lint xxx.podspec --sources ='repo1 url, repo2 url' --allow-warnings --use-libraries 
验证远程代码库
pod lib lint WYLoginModule.podspec --sources='https://gitee.com/BIMComponent/BIMRepo.git,https://github.com/CocoaPods/Specs.git' --allow-warnings --use-libraries 

pod lib lint xxx.podspec --sources ='repo1 url, repo2 url' --allow-warnings --use-libraries
上传私有库
1.   pod trunk me
看上传的私有库是否在列表中
如果不存在,就要在次上传此私有库
pod trunk push xxx.podspec --allow-warnings --use-libraries
上传本地
pod repo push WYRepo WYLoginModule.podspec --sources='https://gitee.com/BIMComponent/BIMRepo.git,https://github.com/CocoaPods/Specs.git' --allow-warnings --use-libraries 

pod repo push XXXRepo xxx.podspec --sources ='repo1 url, repo2 url' --allow-warnings --use-libraries

上传完成之后

rm ~/Library/Caches/CocoaPods/search_index.json
pod repo update
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。