Member-only story
Getting error while installing cocoapods: “You don’t have write permissions for the /usr/bin directory.”
1 min readNov 2, 2019
I found the solution by do the following :
- open terminal
- use terminal as root user and enter sudo -i
- enter your password
- type this line sudo gem install cocoapods -V
Cocoapods installed successfully finally.
For more about iOS development : https://medium.com/@javedmultani16
Some useful codes and libraries: https://github.com/javedmultani16
Know more about me: https://www.linkedin.com/in/javedmultani16/