recently upgraded the MAC system to the 10.11 system, but when using the pod Install command, it prompted command not found. Later on the Internet to check the next to know, Cocoapods on the 10.11 system has changed.
The explanation found in StackOverflow is that the happening because Apple has the enable rootless on the new install, which means that on 10.11 systems Apple has enabled root-free installation. In this case, if you use the following command:
sudo gem install cocoa pods-v
The prompt will appear:
Error:while Executing gem ... (errno::eperm) Operation not permitted-/usr/bin/pod.
In order to solve the problem mentioned above and the normal use of cocoapods on OS X 10.11 system, we need to enter such a sentence at the command line,
sudo gem install-n/usr/local/bin cocoapods
This will solve the problem of cocoapods on the 10.11 system.
Fix cocoapods problems in OS X 10.11