4
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

CocoaPodsのインストール

4
Last updated at Posted at 2016-10-06

今更ながらCocoaPodsをインストールした。gem install cocoapodsでインストールできるとの情報が多かったが、依存関係でエラーになってしまったので、うまく行った手順を示す。

環境

  • OS X 10.11.6
  • Xcode 8

手順

以下のコマンドでインストールする。

sudo gem install activesupport -v 4.2.6
sudo gem install cocoapods 

以下のコマンドでセットアップしておくとよい。(少し時間がかかります)

pod setup

失敗時の状況

cocoapodを普通にインストールしようとするとactivesupportの最新版をインストールしようとして失敗する。古いバージョンのactivesupportをインストールしておくことで、エラーを回避できる。

sudo gem install cocoapods
Password:
Fetching: concurrent-ruby-1.0.2.gem (100%)
Successfully installed concurrent-ruby-1.0.2
Fetching: activesupport-5.0.0.1.gem (100%)
ERROR:  Error installing cocoapods:
	activesupport requires Ruby version >= 2.2.2.
4
5
1

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
4
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?