Kr1s77 / Kr1s77.github.io

Good as water, light as chrysanthemum.
https://kr1s77.github.io/
Other
8 stars 3 forks source link

MacOs Sonoma14.0 Xcode15 适配 MonkeyDev #12

Open Kr1s77 opened 8 months ago

Kr1s77 commented 8 months ago
1. 使用最新的 fishhook 替换掉 MonkeyDev 中的 fishhook
$ cd <项目中 fish hook 所在的目录>
$ rm -rf fishhook
$ git clone https://github.com/facebook/fishhook.git

2. 删除 Xcode 配置文件Other Linker Flags中 libc++ 库和 weak_library
3. 导入下 libarclite_iphoneos.a 静态库
$ mkdir -p /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc
$ git clone https://github.com/kamyarelyasi/Libarclite-Files
$ mv Libarclite-Files/libarclite_iphone* /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc

4. 在 xcode 配置文件中设置 User Script Sandboxing 为 No
5. 在 xcode 配置文件中设置 Info.plist file 为 当前项目名称/Info.plist 
6.在 xcode 配置文件中设置项目 Dylib info.plist 为当前项目中的 info.plist

这样就实现了 xcode 15 中使用 MonkeyDev,只不过每次运行都需要使用 command+shift+k 清理一下项目,再启动!