避免团队多人 cocopods 冲突未验证

Ruby 版本rbenvrvm │ rbenv local 3.2.0 │

├────────────────┼──────────────┼─────────────────────────┤

CocoaPods 版本Bundler │ bundle exec pod install │

└────────────────┴──────────────┴─────────────────────────┘

推荐你这样搞(一劳永逸)

1. rbenv 管理 Ruby 版本

brew install rbenv

rbenv install 3.2.0

rbenv global 3.2.0

2. Bundler 锁定 CocoaPods 版本

在你的 iOS 项目根目录:

gem install bundler

bundle init

编辑生成的 Gemfile:

source "https://rubygems.org"

gem "cocoapods", "~> 1.15"

然后:

bundle install

以后每次装 Pod 都用:

bundle exec pod install

这样做的好处:Gemfile.lock 会提交到 Git,团队所有人、所有分支用的 CocoaPods 版本完全一致,切分支再也不会因为版本不对要重新 install 了。

相关推荐
代码的小搬运工2 小时前
【iOS】3G-Share仿写总结
macos·ios·cocoa
2501_916007473 小时前
iOS和macOS应用程序性能分析和优化工具使用综合指南
android·macos·ios·小程序·uni-app·iphone·webview
游戏开发爱好者84 小时前
iOS开发IDE有哪些 Xcode 和 快蝎 轻量替代方案
ide·vscode·ios·个人开发·xcode·swift·敏捷流程
ZZH_AI项目交付1 天前
同一套前摄心率算法,为什么 iPhone 16 Pro 稳,iPhone XR 会失准?
ios·app·ai编程
DeMinds1 天前
内容没有丢,我为什么总在重新整理?|DeMinds 如何让工作接着继续
ios·github·markdown
apd_csdn1 天前
清华邮箱苹果邮件app设置(全)
ios·thu
MDM.Plus1 天前
从“遥控”到“自治”:苹果 MDM 技术的代际跨越与业务重构
ios·智能手机·重构·mdm
黑化旺仔1 天前
iOS - 天气预报仿写总结
ios
Coffeeee1 天前
ios零基础的Android开发能否靠AI让老板省一笔人工费呢
android·ios·ai编程