LoginSignup
34
32

More than 5 years have passed since last update.

古いバージョンのCocoaPodsをつかう

Posted at

CocoaPods本体の古いバージョンを使う話。普通は問題ないが強引なことをやっているとバージョンアップして動かなくなることがある。

以下のようにして古いバージョンにダウングレードできる。

gem uninstall cocoapods --version=0.26.2
gem install cocoapods -v 0.25

別の方法として特定のプロジェクトだけ別のバージョンを使いたい場合はBundlerを使い、Gemfileを以下のように作成して

Gemfile
source 'https://rubygems.org'
gem 'cocoapods', '0.25.0'

bundle install でインストールする。

bundle install --path=vendor/bundle

podコマンドを使うときは bundle exec を使う。

bundle exec pod --version
34
32
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
34
32