美文网首页OC-开发案例收集
Xcode 15 更新后,编辑报错

Xcode 15 更新后,编辑报错

作者: 西门吸雪 | 来源:发表于2023-09-19 11:50 被阅读0次

一、Assertion failed: (false && "compact unwind compressed function offset doesn't fit in 24 bits"), function operator(), file Layout.cpp, line 5758
linker command failed with exit code 1 (use -v to see invocation)


image.png

解决方案:
在 Project->target->Build Settings->Other linker Flags 路径下,添加 -ld64


image.png
二、固化私有组件报错:clang: error: SDK does not contain 'libarclite' at the path xxx (可归类为:缺失 libarclite_iphoneos.a)
解决方案:
因为需要指定版本到有特殊要求(好像是从14.3.1,我是直接从14.2升级到15.0),可以考虑从其他版本的Xcode拷贝

使用访达,文件前往:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/

拷贝整个arc 文件夹到自己的对应位置


image.png

相关文章

网友评论

    本文标题:Xcode 15 更新后,编辑报错

    本文链接:https://www.haomeiwen.com/subject/wtvnvdtx.html