前言
运行老项目,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,如下图:
