Official website installation command:
Ruby-e "$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install)"
If you already have the installation you want to reinstall, call this command before you install it:
rm-rf/usr/local/cellar/usr/local/.git && Brew Cleanup
When installing the kit via homebrew (for example: sudo brew install xctool), you will encounter this issue:
Error:cowardly refusing to ' sudo brew install '
You can use a brew with sudo and only if the brew executable are owned by root.
However, this is both not recommended and completely unsupported so does at
Your own risk.
This means that brew does not have root privileges now.
Check the permissions for this file now: You can see that the side file does not have root permissions.
Now you need to modify this file to have root privileges:
After the modification, the file will have root privileges.
Now you can install the Automatic Packaging tool Xctool with sudo brew install xctool ...
Advanced iOS Development Technology Exchange Group: 415239068, Welcome to join US