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

场景

当不方便使用 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'
相关推荐
这个昵称也不能用吗?4 天前
react-native搭建开发环境过程记录
前端·react native·cocoapods
东东爱编码5 天前
一路磕磕绊绊解决flutter doctor 报错CocoaPods not installed
flutter·xcode·cocoapods
duly9 天前
CocoaPods 私有库Spec Repo搭建与使用指南
ios·cocoapods
折翅鵬13 天前
Flutter报错:Warning: CocoaPods is installed but broken
flutter·cocoapods
JQShan1 个月前
轻松搞懂 CocoaPods:Podfile 与 .podspec 的区别与最佳实践
面试·ruby·cocoapods
auspark2 个月前
macos下cocoapods的学习
学习·macos·cocoapods
gla1ve_Yim3 个月前
iOS 私有库组件化:CocoaPods搭建私有仓库
ios·cocoapods
健忘已成殇3 个月前
iOS 本地新项目上传git仓库,并使用sourceTree管理
git·ios·xcode·cocoapods
胖虎16 个月前
CocoaPods安装步骤详解 - 2024
ios·cocoa·xcode·cocoapods
Cat_Xu6 个月前
【VUE】【IOS】【APP】IOS Music APP播放器开发
vue.js·spring boot·nginx·ios·xcode·cocoapods