BenInfogene
BenInfogene

Reputation: 33

Can't Install Cocoapods on macOS Sierra

I'm not able to install CocoaPods on my Mac for my project.

I'm running macOS Sierra 10.12.3 and Xcode 8.2.1 (Swift 3)

When running sudo gem install cocoapods I got this error :

Fetching: cocoapods-core-1.2.0.gem (100%)

Successfully installed cocoapods-core-1.2.0

Fetching: cocoapods-1.2.0.gem (100%)

ERROR: While executing gem ... (Errno::EPERM)

Operation not permitted - /usr/bin/pod

I've try both answers on this topic but I didn't got any Podfile sadly.

Can anyone please help me ? :)

Thanks

Upvotes: 3

Views: 4439

Answers (1)

Danh Huynh
Danh Huynh

Reputation: 2327

Try this sudo gem install cocoapods -n /usr/local/bin/

Upvotes: 8

Related Questions