1.安装brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
如果安装brew报错:curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused 输入sudo vim /etc/hosts,在hosts中添加199.232.68.133 raw.githubusercontent.com
2.安装最新的theos
sudo git clone --recursive https://github.com/theos/theos.git /opt/theos
3.安装ldid
brew install ldid
4.安装
选择指定的Xcode进行安装:
sudo xcode-select -s /Applications/Xcode-beta.app
或者默认安装的Xcode为:
xcode-select -p
5.执行安装命令:
sudo /bin/sh -c "$(curl -fsSL https://raw.githubusercontent.com/AloneMonkey/MonkeyDev/master/bin/md-install)"