经验分享 · 2025年10月30日

Targeting .Net app to Net9.0-macos and AOT publish error Assertion failed: (_addend == uniqueIndex && “too many large addends”) , function setAddend

It is an apple lld bug in latest version. The only known workaround is to use ld-classic (<_UseClassicLinker>true</_UseClassicLinker> for netX-macos projects or manually injecting the -ld_classic linker option). Affects all Xcode 16+ versions