首页 > 其他分享 >iOS Cocoapods 版本不同的问题

iOS Cocoapods 版本不同的问题

时间:2023-02-27 10:58:16浏览次数:35  
标签:版本 cocoapods iOS bundler install pod Cocoapods

在团队开发中,经常会遇到不同的开发人员使用的 cocoapods 版本不同的问题,导致每次拉取代码后都需要先进行 pod install
解决办法 1:团队人员统一使用相同版本的 cocoapods。
解决办法 2:使用 bundler exec pod install 来进行 pod install

方案 2 命令:

需要创建一个 Gemfile 并添加内容

source 'https://rubygems.org' do
  gem 'cocoapods', '1.5.0'
end
  1. 安装 bundler sudo gem install bundler:2.2.19 (版本号自定)
  2. 执行命令:bundle install
  3. 操作 bundler exec pod install

标签:版本,cocoapods,iOS,bundler,install,pod,Cocoapods
From: https://www.cnblogs.com/dulinshun/p/ios-cocoapods-ban-ben-bu-tong-de-wen-ti.html

相关文章