官方地址:https://github.com/AloneMonkey/MonkeyDev/wiki/%E5%AE%89%E8%A3%85
第一步,安装theos
安装最新的theos,一定要将所有子模块都克隆全
sudo git clone --recursive https://github.com/theos/theos.git /opt/theos
配置环境变量sudo vim ~/.zshrc
查看是否安装成功执行命令nic.pl
安装ldid
brew install ldid
安装MonkeyDev
到git上下载源代码
解压源代码,使用终端进入bin目录
执行安装命令
sudo ./md-install
安装过程中报443不能访问
将md-install改名为txt
注释掉不能访问的代码
git上下载frida-ios-dump,(可参考我另外一篇文章dump.py有修改),复制dump.js,和dump.py
到/opt/MonkeyDev/bin
复制到
将md-insttall改名回来,再重新执行安装, sudo ./md-install
报错:File /Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/Resources/Embedded-Device.xcspec not found
解决方案
把
specificationFile=$(cd $iosSdkPlatformPath/../../.. && pwd)/PlugIns/IDEiOSSupportCore.ideplugin/Contents/Resources/Embedded-Device.xcspec
修改为
specificationFile=$(cd $iosSdkPlatformPath/../../.. && pwd)/PlugIns/XCBSpecifications.ideplugin//Contents/Resources/Embedded-Device.xcspec
报错
File /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Xcode/Specifications/MacOSX Package Types.xcspec not found
把
macosxSDKSpecificationsPath=$macosSdkPlatformPath/Developer/Library/Xcode/Specifications
修改为
macosxSDKSpecificationsPath=$(cd $iosSdkPlatformPath/../../.. && pwd)/PlugIns/XCBSpecifications.ideplugin//Contents/Resources/
错误解决总结,如果报哪个文件找不到,那我们就在xcode里面搜一下,然后替换路径
执行重新安装命令
重新安装后xcode闪退
删掉<dict/>,现在我们就可以运行xcode了,最终效果
运行遇到File not found: /usr/lib/libstdc++.dylib解决方法
下载libstdc-
https://github.com/devdawei/libstdc-
执行命令:sudo zsh /Users/zaixianglong/Downloads/libstdc--master/install-xcode_11+.sh