官方地址: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
![](https://i-blog.csdnimg.cn/blog_migrate/6f3b80d9b8fdb5d34f1d0ad9b2fb30f6.png)
![](https://i-blog.csdnimg.cn/blog_migrate/61e52c291d392109d1c22892fd6c7487.png)
查看是否安装成功执行命令nic.pl
![](https://i-blog.csdnimg.cn/blog_migrate/d39e96ce19488ad4522f0ce9cce988a1.png)
安装ldid
brew install ldid
安装MonkeyDev
到git上下载源代码
解压源代码,使用终端进入bin目录
![](https://i-blog.csdnimg.cn/blog_migrate/840ce32d54c027b105c83a1bfd95a9b5.png)
![](https://i-blog.csdnimg.cn/blog_migrate/dcf3edf2ac649d98215cecebc7b7eb4f.png)
执行安装命令
sudo ./md-install
![](https://i-blog.csdnimg.cn/blog_migrate/70ea98aafab92b709ba97dcaeecf165a.png)
安装过程中报443不能访问
将md-install改名为txt
![](https://i-blog.csdnimg.cn/blog_migrate/fcc604f3a317264e849920a5ca5b46b9.png)
注释掉不能访问的代码
![](https://i-blog.csdnimg.cn/blog_migrate/62a74b1969fcc5bcdf383f4823a07905.png)
git上下载frida-ios-dump,(可参考我另外一篇文章dump.py有修改),复制dump.js,和dump.py
到/opt/MonkeyDev/bin
![](https://i-blog.csdnimg.cn/blog_migrate/c128c991aaf42cbafcaefe62c8fa287f.png)
复制到
![](https://i-blog.csdnimg.cn/blog_migrate/692829254897f386711802a84eea6026.png)
将md-insttall改名回来,再重新执行安装, sudo ./md-install
![](https://i-blog.csdnimg.cn/blog_migrate/53a31f6ec150404dc6b29a9d27188fe2.png)
报错: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里面搜一下,然后替换路径
![](https://i-blog.csdnimg.cn/blog_migrate/e99d56ca46636521ce7d03461deb58ef.png)
执行重新安装命令
重新安装后xcode闪退
![](https://i-blog.csdnimg.cn/blog_migrate/75aa56e0e385244eee435ecb3362eb50.png)
删掉<dict/>,现在我们就可以运行xcode了,最终效果
![](https://i-blog.csdnimg.cn/blog_migrate/592d094ddd33d17af6bbd6d72175daf5.png)
运行遇到File not found: /usr/lib/libstdc++.dylib解决方法
![](https://i-blog.csdnimg.cn/blog_migrate/a65548c8ae1fe4934cdc7969805877a6.png)
下载libstdc-
https://github.com/devdawei/libstdc-
![](https://i-blog.csdnimg.cn/blog_migrate/f306752418d097d04cbe0a3bbf6b665e.png)
执行命令:sudo zsh /Users/zaixianglong/Downloads/libstdc--master/install-xcode_11+.sh