Xcode 26 Link Error

Using xcode 26 with linker flag -ld_classic,get an error :

0 0x1042b9778 __assert_rtn + 160 1 0x1042bc560 ld::tool::SymbolTableAtom<x86_64>::classicOrdinalForProxy(ld::Atom const*) (.cold.3) + 0 2 0x1041f3da8 ld::tool::SymbolTableAtom<x86_64>::classicOrdinalForProxy(ld::Atom const*) + 172 3 0x1041f4c1c ld::tool::SymbolTableAtom<arm64>::addImport(ld::Atom const*, ld::tool::StringPoolAtom*) + 140 4 0x1041f6500 ld::tool::SymbolTableAtom<arm64>::encode() + 396 5 0x1041e83a8 ___ZN2ld4tool10OutputFile20buildLINKEDITContentERNS_8InternalE_block_invoke.413 + 36 6 0x182a95b2c _dispatch_call_block_and_release + 32 7 0x182aaf85c _dispatch_client_callout + 16 8 0x182acc478 _dispatch_channel_invoke.cold.5 + 92 9 0x182aa7fa4 _dispatch_root_queue_drain + 736 10 0x182aa85d4 _dispatch_worker_thread2 + 156 11 0x182c49e28 _pthread_wqthread + 232 A linker snapshot was created at: /tmp/app-2025-06-13-215652.ld-snapshot ld: Assertion failed: (it != _dylibToOrdinal.end()), function dylibToOrdinal, file OutputFile.cpp, line 5196. clang++: error: linker command failed with exit code 1 (use -v to see invocation)

See my comment above on how the issue was resolved for me. On top of that another suggestions from Apple on my Feedback Assistent ticket was related to changing some build settings, I didn't try these, but posting them here anyway as it may help someone else: "The real problem here is most likely related to auto-linking. Auto-linking is a feature where linker automatically resolves library dependencies. For Swift code you can opt-out of that using the SWIFT_MODULES_AUTOLINK build setting, or using CLANG_MODULES_AUTOLINK for C/Objective-C code. For Swift you can also try some more granular options such as SWIFT_SKIP_AUTOLINKING_ALL_FRAMEWORKS, SWIFT_SKIP_AUTOLINKING_FRAMEWORKS, SWIFT_SKIP_AUTOLINKING_LIBRARIES to control what is auto-linked. Once you disable auto-linking you’ll see a bunch of undefined symbols, and based on that you’ll need to determine which frameworks/libraries need to be explicitly linked (configured through build phases as explained in https://developer.apple.com/documentation/xcode/customizing-the-build-phases-of-a-target#Link-against-additional-frameworks-and-libraries )"

It's work!

But need 2 steps. step 1, remove "ld64"; step 2, add "-Xlinker -dead_strip -Xlinker -allow_dead_duplicates". With Xcode 26 Beta 7, it's OK.

My project is build success with Xcode 16.3, only build failed with Xcode 26 beta. Above infomation resolvd my issue,Thank You !

Xcode 26 Link Error
 
 
Q