iOS17及Xcode15 Assertion failed: (aliasSectionNum == sectionNum && “alias and its target must be loca

Xcode15 运行老项目报错:Assertion failed: (aliasSectionNum == sectionNum && "alias and its target must be located in the same section"), function assignAliasAtomOffsetInSection, file Layout.cpp, line 3248.

如下图:

解决方案:Build Settings -> Other Linker Flags 中增加 -ld64

如下图:

猜你喜欢

转载自blog.csdn.net/wyz670083956/article/details/134412512