hook之MonkeyDev

一.安装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
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容