cocoapods 常用命令

pod env

查看cocoapods环境变量

pod lib create

创建一个pod库,可以选择是否带一个Example工程;

pod init

在你的工程目录下执行之后,工程目录之下会多一个podfile文件;

pod install

在工程第一次使用或者中间有添加,删除,更新库的时候使用

pod install --verbose --no-repo-update

执行pod install 但不升级本地cocoapods spec库

pod update

更新所有pod 库到podfile指定的最新版本

pod update --verbose --no-repo-update

执行pod update 但不升级本地cocoapods spec库

pod update xxx

单独更新xxx库

pod outdated

列出podfile用到的那些库有新版本

pod cache list

列出所有pod的缓存

pod cache clean -all

清除所有pod的缓存

pod cache clean xxx

清除xxx pod的缓存

pod repo list

列出本地所有spec仓库

pod repo remove xxx

删除本地xxx spec库(可以是cocoapods的master库,删除之后,使用pod set up安装;也可以是私有的spec库);

pod spec create xxx

创建xxx.podspec文件

pod search xxx

在本地的spec库中搜索xxx

pod lib lint xxx.podspec

检查xxx.podspec库书写是否正确

sudo gem install cocoapods

安装或升级cocoapods

pod trunk register 邮箱 用户名 --verbose

向cocoapod 注册自己的用户名和邮箱

pod trunk me

查看注册信息

pod trunk push xxx.podspec

把自己的xxx.podspec文件推送到cocoapods 的spec仓库

相关推荐
龙之吻8 天前
iOS 使用CocoaPods 添加Alamofire 提示错误的问题
ios·xcode·cocoapods
Jim-zf9 天前
VScode ios 模拟器安装cocoapods
ios·xcode·cocoapods
[奋斗不止]1 个月前
MacOS 安装 cocoapods
macos·cocoapods·mac cocoapods·macos cocoapods
这个昵称也不能用吗?2 个月前
react-native搭建开发环境过程记录
前端·react native·cocoapods
东东爱编码2 个月前
一路磕磕绊绊解决flutter doctor 报错CocoaPods not installed
flutter·xcode·cocoapods
duly2 个月前
CocoaPods 私有库Spec Repo搭建与使用指南
ios·cocoapods
折翅鵬2 个月前
Flutter报错:Warning: CocoaPods is installed but broken
flutter·cocoapods
JQShan3 个月前
轻松搞懂 CocoaPods:Podfile 与 .podspec 的区别与最佳实践
面试·ruby·cocoapods
auspark3 个月前
macos下cocoapods的学习
学习·macos·cocoapods
gla1ve_Yim4 个月前
iOS 私有库组件化:CocoaPods搭建私有仓库
ios·cocoapods