环境准备
1.安装Theos
sudo git clone --recursive https://github.com/theos/theos.git /opt/theos
2.安装ldid
brew install ldid
3.clone MonkeyDev 仓库并安装
git clone https://github.com/AloneMonkey/MonkeyDev.git
cd ~/Desktop/MonkeyDev/bin/
sudo ./md-install
4.出现的问题及解决方案
提示 Embedded-Device.xcspec 找不到,我们去到Xcode的目录下整体搜索这个
cd /Applications/Xcode.app/Contents
find . -name Embedded-Device.xcspec
Xcode16中这个库换了位置,所以install脚本会报错
将这个库复制过来
sudo cp ./SharedFrameworks/XCBuild.framework/Versions/A/PlugIns/XCBBuildService.bundle/Contents/PlugIns/XCBSpecifications.ideplugin ./PlugIns/IDEiOSSupportCore.ideplugin
接着再次执行第三步的 ./md-install,会再次报错,找不到Specifications/MacOSX Package Types.xcspec
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Xcode/Specifications/MacOSX Package Types.xcspec not found
这个文件夹在Xcode13后面没有了,我们下载一份旧的放到对应路径下
最后再执行下md-install,安装成功
- 安装成功后我们重新打开Xcode,创建project最下方就会有MonkeyDev
我们选择MonkeyApp创建一个项目来运行,发现会报各种错误,少libstdc之类的库 对此我们将monkeydev目录下的templates目录替换下,下载templates替换/opt/MonkeyDev 下的templates目录。
重新创建MonkeyApp,编译通过!
这就是我安装MonkeyDev中遇到的问题,如果大家还遇到其他的问题,欢迎一起讨论。