LeeRQ
LeeRQ

Reputation: 79

sudo gem install cocoapods --pre error

today I going to use swift 3.0, so I want to use cocoapods to install Alamofire 4.0, but terminal note that require cocoapods 1.1.0, my pods is 1.0.1, so I use sudo gem install cocoapods --pre to update, But get error

enter image description here

Upvotes: 1

Views: 667

Answers (1)

Rashwan L
Rashwan L

Reputation: 38843

What the error says is that you can't write to: /usr/bin. Try this and see if it makes any difference:

sudo gem install -n /usr/local/bin cocoapods --pre

Upvotes: 1

Related Questions