LoginSignup
32

More than 5 years have passed since last update.

posted at

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

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

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
What you can do with signing up
32