Xcode15 Assertion failed: (alias
2024-05-05 本文已影响0人
__Mr_Xie__
前言
运行老项目,Xcode15报错,如下图:
Assertion failed: (aliasSectionNum == sectionNum && "alias and its target must be located in the same section"), function assignAliasAtomOffsetInSection, file Layout.cpp, line 3248.
或者:
Assertion failed: (aliasSectionNum == sectionNum && "alias and its target must be located in the same section"), function assignAliasAtomOffsetInSection, file Layout.cpp, line 3324.
解决方案
Build Settings->Other Linker Flags中增加-ld64,如下图: