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

相关推荐
gavin carter15 天前
一台电脑管理多个cocoapods账号
xcode·cocoapods
明似水17 天前
解决 Ruby Gem “rexml“ 版本不兼容问题 (CocoaPods/Firebase 相关错误)
开发语言·ruby·cocoapods
survivorsfyh23 天前
Xcode 16 集成 cocoapods 报错
macos·xcode·cocoapods
survivorsfyh23 天前
error: Sandbox: rsync(17136) deny(1) file-write-create
xcode·cocoapods
龙之吻1 个月前
iOS 使用CocoaPods 添加Alamofire 提示错误的问题
ios·xcode·cocoapods
Jim-zf1 个月前
VScode ios 模拟器安装cocoapods
ios·xcode·cocoapods
[奋斗不止]2 个月前
MacOS 安装 cocoapods
macos·cocoapods·mac cocoapods·macos cocoapods
这个昵称也不能用吗?3 个月前
react-native搭建开发环境过程记录
前端·react native·cocoapods
东东爱编码3 个月前
一路磕磕绊绊解决flutter doctor 报错CocoaPods not installed
flutter·xcode·cocoapods
duly3 个月前
CocoaPods 私有库Spec Repo搭建与使用指南
ios·cocoapods