MonkeyDev是一款非常好用的非越獄插件開(kāi)發(fā)集成工具颠焦,但是安裝的時(shí)候或多或少會(huì)遇到一些坑,這里我們一起來(lái)解決一下吧
1 下載報(bào)錯(cuò) 443 Connection refused
按照官方的文檔來(lái)
執(zhí)行安裝命令:
sudo /bin/sh -c "$(curl -fsSL https://raw.githubusercontent.com/AloneMonkey/MonkeyDev/master/bin/md-install)"
報(bào)錯(cuò):
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
這是因?yàn)榉阑饓Φ脑蚴赎芏嗑W(wǎng)上的資料推薦修改代理和直接解析host。
- 方案A.修改host的方案如下:
https://github.com/hawtim/blog/issues/10
這個(gè)方案對(duì)我無(wú)效,原理還是當(dāng)前的ISP不給力,被DNS污染比較嚴(yán)重充蓝,無(wú)法解析IP,可能對(duì)有的小伙伴有幫助,點(diǎn)贊的還是很多的谓苟,這里還是貼出來(lái)
- 方案B. 直接clone下來(lái)官脓,執(zhí)行安裝
git clone https://github.com/AloneMonkey/MonkeyDev.git
cd MonkeyDev/bin
sudo bash md-install
2 安裝時(shí)報(bào)錯(cuò)
Failed to download https://raw.githubusercontent.com/AloneMonkey/frida-ios-dump/3.x/dump.py to /opt/MonkeyDev/bin/dump.py
Failed to download https://raw.githubusercontent.com/AloneMonkey/frida-ios-dump/3.x/dump.js to /opt/MonkeyDev/bin/dump.js
這兩個(gè)報(bào)錯(cuò)對(duì)應(yīng)安裝文件中的
#downloadFile "https://raw.githubusercontent.com/AloneMonkey/frida-ios-dump/3.x/dump.py" "$MonkeyDevPath/bin/dump.py"
#downloadFile "https://raw.githubusercontent.com/AloneMonkey/frida-ios-dump/3.x/dump.js" "$MonkeyDevPath/bin/dump.js"
直接把他們注釋?zhuān)缓笾鲃?dòng)去下載
新建一個(gè)git
目錄
git clone https://github.com/AloneMonkey/frida-ios-dump.git
cd frida-ios-dump
把里面的dump.js
和dump.py
拷貝到/opt/MonkeyDev/bin
目錄下
3安裝時(shí)報(bào)錯(cuò)
File /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Xcode/Specifications/MacOSX Package Types.xcspec not found
這是新版的Xcode12上文件目錄發(fā)生了改變,我們需要手動(dòng)修改它
我們把如下三行代碼注釋
# macosxSDKSpecificationsPath=$macosSdkPlatformPath/Developer/Library/Xcode/Specifications
# packageTypesForMacOSXPath="$macosxSDKSpecificationsPath/MacOSX Package Types.xcspec"
# productTypesForMacOSXPath="$macosxSDKSpecificationsPath/MacOSX Product Types.xcspec"
修改如下
macosxSDKSpecificationsPath=$macosSdkPlatformPath/Developer/Library/Xcode/PrivatePlugIns
packageTypesForMacOSXPath="$macosxSDKSpecificationsPath/IDEOSXSupportCore.ideplugin/Contents/Resources/MacOSX Package Types.xcspec"
productTypesForMacOSXPath="$macosxSDKSpecificationsPath/IDEOSXSupportCore.ideplugin/Contents/Resources/MacOSX Product Types.xcspec"
重新執(zhí)行安裝指令
Downloading MonkeyDev base from Github...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3452k 0 3452k 0 0 2619k 0 --:--:-- 0:00:01 --:--:-- 2619k
Downloading Xcode templates from Github...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 306k 100 306k 0 0 192k 0 0:00:01 0:00:01 --:--:-- 192k
Downloading frida-ios-dump from Github...
Creating symlink to Xcode templates...
Modifying Bash personal initialization file...
打開(kāi)Xcode查看安裝情況
希望能幫助到大家
修改后的MonekyDev