Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode26 - Compile time error - ld: Assertion failed [closed]

Tags:

xcode

xcode26

When I am building my project with Xcode 26, I am getting following error:

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).

If I remove -ld64 then this Error gets resolved but I got following error:

Assertion failed: ((ct == Atom::ContentType::objcConst) || (ct == Atom::ContentType::objcData) || (ct == Atom::ContentType::constData) || (ct == Atom::ContentType::constText)), function ObjCClassReadOnlyDataRef, file Atom.cpp, line 3292.

I have tried https://cloud.tencent.com/developer/article/2557391 however didn't resolve the issue.

There are multiple threads around the same issues on Apple Developer Form, https://developer.apple.com/forums/thread/788064 https://developer.apple.com/forums/thread/788064?answerId=851712022#851712022

However none has resolved the problem so far.

like image 511
B Pruthi Avatar asked Sep 12 '26 20:09

B Pruthi


1 Answers

What helped me: removing ‘-ld64’ and ‘-ld_classic’ from OTHER_LDFLAGS

like image 160
Alexander Avatar answered Sep 14 '26 12:09

Alexander



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!