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

场景

当不方便使用 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'
相关推荐
JQShan19 天前
轻松搞懂 CocoaPods:Podfile 与 .podspec 的区别与最佳实践
面试·ruby·cocoapods
auspark1 个月前
macos下cocoapods的学习
学习·macos·cocoapods
gla1ve_Yim2 个月前
iOS 私有库组件化:CocoaPods搭建私有仓库
ios·cocoapods
健忘已成殇3 个月前
iOS 本地新项目上传git仓库,并使用sourceTree管理
git·ios·xcode·cocoapods
胖虎15 个月前
CocoaPods安装步骤详解 - 2024
ios·cocoa·xcode·cocoapods
Cat_Xu5 个月前
【VUE】【IOS】【APP】IOS Music APP播放器开发
vue.js·spring boot·nginx·ios·xcode·cocoapods
温暖5 个月前
Xcode 16新建ShareExtension产生的PBXFileSystemSynchronizedRootGroup问题记录
ios·xcode·cocoapods
蓉妹妹5 个月前
在 macOS 上卸载 CocoaPods
macos·xcode·cocoapods
恋猫de小郭7 个月前
CocoaPods 官宣进入维护模式,不在积极开发新功能,未来将是 Swift Package Manager 的时代
xcode·swift·cocoapods
sziitjin8 个月前
IOS 01 CocoaPods 安装与使用
xcode·cocoapods