安裝MonkeyDev遇到的問題,簡單記錄下
正常步驟按著文檔來就行:傳送門
環(huán)境要求
使用工具前確保如下幾點:
安裝最新的theos
sudo git clone --recursive https://github.com/theos/theos.git /opt/theos
安裝ldid(如安裝theos過程安裝了ldid,跳過)
brew install ldid
配置免密碼登錄越獄設備(如果沒有越獄設備,跳過)
注:username為當前設備用戶名稱,ip為需要鏈接的越獄設備IP
ssh-keygen -t rsa -P ''
ssh-copy-id -i /Users/username/.ssh/id_rsa root@ip

或者安裝sshpass自己設置密碼:
brew install https://raw.githubusercontent.com/kadwanev/bigboybrew/master/Library/Formula/sshpass.rb
你可以通過以下命令選擇指定的Xcode進行安裝:
sudo xcode-select -s /Applications/Xcode-beta.app
默認安裝的Xcode為:
xcode-select -p
執(zhí)行安裝命令:
sudo /bin/sh -c "$(curl -fsSL https://raw.githubusercontent.com/AloneMonkey/MonkeyDev/master/bin/md-install)"
? 在這里遇到了一個錯誤:
File /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Xcode/Specifications/MacOSX Package Types.xcspec not found
錯誤原因:這是因為我的是XCode12,XCode里面沒有這個文件了,解決辦法就是從XCode11,里面復制一份過來放在相應路徑就行了,我這放百度網(wǎng)盤一份,需要的可以下載:
鏈接: https://pan.baidu.com/s/10FsmX5npyxiIH2DjBKK5hg 密碼: oebv

sudo /bin/sh -c "$(curl -fsSL https://raw.githubusercontent.com/AloneMonkey/MonkeyDev/master/bin/md-uninstall)"
如果沒有發(fā)布特殊說明,使用如下命令更新即可:
sudo /bin/sh -c "$(curl -fsSL https://raw.githubusercontent.com/AloneMonkey/MonkeyDev/master/bin/md-update)"
安裝/更新之后重啟下Xcode再新建項目。
等待安裝完成后沒有問題,重啟下Xcode就OK了,一下是效果圖
(Google了好多資料才安裝上,??????)
