一.安装MonkeyDev
1、安装theos
sudo git clone --recursive https://github.com/theos/theos.git /opt/theos
2、配置环境变量
export PATH=$PATH:$/opt/theos/bin
3、安装MonkeyDev
sudo /bin/sh -c "$(curl -fsSL https://raw.githubusercontent.com/AloneMonkey/MonkeyDev/master/bin/md-install)"
1)、报错1
File /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Xcode/Specifications/MacOSX Package Types.xcspec not found
解决方案
//建立软链接
sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Xcode/PrivatePlugIns/IDEOSXSupportCore.ideplugin/Contents/Resources /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Xcode/Specifications
2)、报错2,安装成功,但是退出xcode重新打开xcode闪退问题解决方案
删除文件中
/Applications/Xcode.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/Resources/Embedded-Device.xcspec连续两个<dict/><dict/>,
保存文件即可
3)、报错3,library not found for -libstdc++
网上搜索下载libstdc++文件,放入xcode路径lib文件夹下
4)、报错4,安装报错executable not found
解决方案:需要每次运行前,先clean
二. 使用
1.打开Xcode,新建工程
截屏2022-07-13 16.16.06.png 截屏2022-07-13 16.18.54.png
网友评论