MonkeyDev是一款非常好用的非越狱插件开发集成工具,但是安装的时候或多或少会遇到一些坑,这里我们一起来解决一下吧
1 下载报错 443 Connection refused
按照官方的文档来
执行安装命令:
sudo /bin/sh -c "$(curl -fsSL https://raw.githubusercontent.com/AloneMonkey/MonkeyDev/master/bin/md-install)"
报错:
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
这是因为防火墙的原因,很多网上的资料推荐修改代理和直接解析host。
- 方案A.修改host的方案如下:
https://github.com/hawtim/blog/issues/10
这个方案对我无效,原理还是当前的ISP不给力,被DNS污染比较严重,无法解析IP,可能对有的小伙伴有帮助,点赞的还是很多的,这里还是贴出来
- 方案B. 直接clone下来,执行安装
git clone https://github.com/AloneMonkey/MonkeyDev.git
cd MonkeyDev/bin
sudo bash md-install
2 安装时报错
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
这两个报错对应安装文件中的
#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"
直接把他们注释,然后主动去下载
新建一个git
目录
git clone https://github.com/AloneMonkey/frida-ios-dump.git
cd frida-ios-dump
把里面的dump.js
和dump.py
拷贝到/opt/MonkeyDev/bin
目录下
3安装时报错
File /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Xcode/Specifications/MacOSX Package Types.xcspec not found
这是新版的Xcode12上文件目录发生了改变,我们需要手动修改它
我们把如下三行代码注释
# 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"
重新执行安装指令
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...
打开Xcode查看安装情况
希望能帮助到大家
修改后的MonekyDev