On Xcode 12, when -libswiftAVFoundation is auto-linked from an object file for the simulator, it's successfully able to find the library for ld but not for zld. the system library search paths for both are:
So, there's a matching .tbd file for each platform besides the simulator, and so iPhoneOS on the other hand works. but it's unclear how newer ld deals with this for libswiftAVFoundation without any issues
On Xcode 12, when -libswiftAVFoundation is auto-linked from an object file for the simulator, it's successfully able to find the library for ld but not for zld. the system library search paths for both are:
Searching for this library, we see:
So, there's a matching .tbd file for each platform besides the simulator, and so iPhoneOS on the other hand works. but it's unclear how newer ld deals with this for libswiftAVFoundation without any issues