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仓库

相关推荐
风早爽太12 天前
使用 CocoaPods 出现 SSL 证书验证失败错误的临时解决方案
ssl·cocoapods
RollingPin2 个月前
sudo gem install cocoapods 报错处理1
ssl·cocoapods·error·gem·安装失败
ShawnRacine3 个月前
iOS开发-安装cocoapods
ios·xcode·cocoapods
Aftery的博客3 个月前
flutter运行macos报错:Error: CocoaPods not installed or not in valid state.
flutter·macos·cocoapods
黄毛火烧雪下4 个月前
ruby 、gem 和 cocoapods的联系与区别
开发语言·ruby·cocoapods
小瓶盖_tl5 个月前
在Mac上安装CocoaPods问题处理
macos·xcode·cocoapods
jianmin09205 个月前
基于Python的高效数据可视化实战指南
cocoapods
天堂罗恋歌5 个月前
CocoaPods 安装 Masonry 库时出现的网络连接问题处理
ios·iphone·xcode·cocoapods·app store
路过看风景7 个月前
zsh: command not found: pod
ios·cocoapods
Keya8 个月前
解决 pod install 警告信息显示不完全的方法
ios·xcode·cocoapods