Ticker

6/recent/ticker-posts

Resolve Cocoapods issue when work with EI Captine Mac OS-X.

Here I'm posting story to solve the Cocoapods issues when working with EI Captine Mac OS-X.

When you updated or clean installed the EI Captine Mac OS-10.11 you may get the following issues while working with Xcode developer tool.

  • Issue:
When you run the pod install common through terminal it throws an error
$pod install
-bash: pod: command not found

To resolve that you conn't use the below command as it is also throws some error
$ sudo gem install cocoapods
Password:ERROR: While executing gem ... (Errno::EPERM)Operation not permitted - /usr/bin/pod


In order to resolved that issue you need to do the following
If you are installed different Xcodes (versions like 5.0,6.0,7.0 so on) you need to configure proper Xcode, to do such thing you can follow anyone of the below step.

Mode 1: Via Terminal Tool
Open the terminal tool and run the below command
$sudo Xcode-select -switch /Applications/Xcode.app
Note: Xcode.app is the selected one from the application 
Mode 2: Via Xcode Preferences
Go to XcodePreferences/Locations the choose the right Xcode verion


Then finally you can run the below command
$ sudo gem install -n /usr/local/bin cocoapods


Now you can able to work with the cocoapods
Use $ pod install or $ pod update

Post a Comment

0 Comments