ld: warning: object file

HELP

ld: warning: object file (/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/libl.a(libmain.o)) was built for newer macOS version (12.3) than being linked (12.0)

why this happened and what should I do ?

Update your Mac to macOS 12.6 (macOS Monterey current) and try again?

Failing that, update Xcode to Xcode 14 (current), and try again?

ld: warning: object file
 
 
Q