There’s another ld in /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain if you were playing with the latest stuff and can’t build for the Sim.