Published - 7 years ago ( Updated - 7 years ago )
sudo gem update --system
The command sudo gem install cocoapods
in the movie will fail to install on the new version of MacOs.
You can use the following command
sudo gem install -n /usr/local/bin cocoapods
reason:
Apple has enabled a new default security feature called System Integrity Protection, commonly known as rootless, after Mac OS version 10.11. The function of rootless is designed to prevent malicious code (whether intentional or accidental) from harming Mac OS X, and essentially SIP (System Integrity Protection) is to lock specific system-level locations in the file system while preventing certain processes from attaching to the system. level process.
Since rootless has no effect on /usr/local/bin, we can install cocoapods to /usr/local/bin without disabling the rootless function.
Since rootless has no effect on /usr/local/bin, we can install cocoapods to /usr/local/bin without disabling the rootless function.
If you want to disable the rootless function: Execute the following command and restart the system.
sudo nvram boot-args="rootless=0"; sudo reboot
Below is the introduction of cocoapod: You can take a look at it if it is quite interesting.
No Comment
Post your comment