不更新索引库, 可以直接使用新的版本么

场景

当不方便使用 pod repo push ... 发布新版本时, 可以另辟蹊径使用 SDK 的新版本么 ?

分析

  1. 正常情况下, 当我们更改了 pod 库的内容, 并想要发布新版本, 需要如下步骤:

    a. 将 pod 库变更的内容 push 到远端, 打 tag 并推送到远端;

    b. 通过更新索引库的方法发布新版本: $ pod repo push miwearPodLib miwearMyAwesomeProject.podspec --allow-warnings

  2. 另辟蹊径 -> 直接在 Podfile 中指定 source 地址和新的 tag 值

ruby 复制代码
// pod 版本库名, :git => 版本库地址
pod 'xxx' , :git => 'https://github.com/xxx/xxx_ios.git'

// pod+路径+版本号下载
pod 'xxx' , :git => 'https://github.com/xxx/xxx_ios.git' , :tag => '3.4.4'
相关推荐
路过看风景14 天前
zsh: command not found: pod
ios·cocoapods
Keya1 个月前
解决 pod install 警告信息显示不完全的方法
ios·xcode·cocoapods
帅次1 个月前
【iOS设计模式】深入理解MVC架构 - 重构你的第一个App
ios·swiftui·objective-c·iphone·swift·safari·cocoapods
@PHARAOH1 个月前
WHAT - 依赖管理工具 CocoaPods
xcode·cocoapods
gavin carter2 个月前
一台电脑管理多个cocoapods账号
xcode·cocoapods
明似水2 个月前
解决 Ruby Gem “rexml“ 版本不兼容问题 (CocoaPods/Firebase 相关错误)
开发语言·ruby·cocoapods
survivorsfyh2 个月前
Xcode 16 集成 cocoapods 报错
macos·xcode·cocoapods
survivorsfyh2 个月前
error: Sandbox: rsync(17136) deny(1) file-write-create
xcode·cocoapods
龙之吻3 个月前
iOS 使用CocoaPods 添加Alamofire 提示错误的问题
ios·xcode·cocoapods
Jim-zf3 个月前
VScode ios 模拟器安装cocoapods
ios·xcode·cocoapods