[求助]升级 macOS Sonoma + Xcode15 后使用 monkeydev 编译报错

  • 编译报错

Build input files cannot be found: ‘/usr/lib/libc++.dylib’, ‘/usr/lib/libstdc++.dylib’. Did you forget to declare these files as outputs of any script phases or custom build rules which produce them?

参照 https://github.com/devdawei/libstdc-.git 解决无效果

我也遇到一样的问题了

我这边报的是不识别iPhoneos,直接不认识这个语法了

IPAPatch

怎么操作?

设置下最低支持的iOS版本?

没好使,您是最新版的Xcode吗

我是用的xcode 14,倒是没问题

other linker flags里将这两个库的weak_libaray删掉

15出现的这个问题

您是xcode15吗?

/opt/theos/vendor/lib/CydiaSubstrate.framework/CydiaSubstrate.tbd:3:18: error: unknown platform
platform: iphoneos
^~~~~~~~
in ‘/opt/theos/vendor/lib/CydiaSubstrate.framework/CydiaSubstrate.tbd’
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我报的是这个错

怎么把 theos 搞进去 可以写 %hook %end

monkeyDev你那边能用了吗?

放弃MonkeyDev吧, iosOpenDev那一套早就被社区抛弃了, 因为与xcode高度耦合, 很难保持更新和维护.
现在一般都是用xcode建普通工程写app或者dylib, 然后配置Makefile用theos直接编译. theos也可以直接调用xcode工程编译, 然后自行处理后续的签名啊打包之类的. 完全不担心xcode更新.

大佬,有相关的文章推荐吗?或者相关关键词

这两个文件是可以直接删除的,然后会有报错:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a 文件找不到,直接从旧的xcode中复制arc文件到以上的路径上,就可以直接运行了

1 个赞

有解决了吗

暂时用的是老版本

Fishhook已经不依赖lib++两个库了,直接Xcode设置的other link配置里面删除就可以了