Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 15: Undefined symbols: Linker command failed with exit code 1 (use -v to see invocation)

Tags:

xcode

upon upgrading to Xcode 15, my widget extension is causing this error: Undefined symbols: Linker command failed with exit code 1 (use -v to see invocation)

When pressing the error, nothing happens. It doesn't show me which symbols are undefined.

How should I fix this?

like image 423
Preem Palver2 Avatar asked Jan 28 '26 03:01

Preem Palver2


1 Answers

try adding -ld_classic to the linker options

from

https://developer.apple.com/forums/thread/731089

this worked in my case, It forces use of the old linker, the new linker is used by default in Xcode 15.

Addition info here..

https://developer.apple.com/forums/thread/715385

like image 173
Nick Walsh Avatar answered Jan 30 '26 21:01

Nick Walsh



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!