I'm in my way to understanding compilation commands that xcode makes, and here is interesting one.
-L/.../Xcode.app/.../XcodeDefault.xctoolchain/usr/lib/swift/iphoneos
-L/usr/lib/swift
You can see, that ios app linking uses path for swift binaries that are built for macos, without it all swift symbols will be undefined. The other one, that looks to be as correct one actually not needed (or needed in some rare cases). Initially I thought that usr/bin/swift contains fat binaries, but it's not.
Why is that? Is it very well known that macos/ios swift binaries will never have extra symbols, and linking will be incorrectly successful or failed? And are different architectures don't matter for linker?