Linking process in Swift build vs Xcode build

The ability to “fix” it by preceding it with some other call is reminiscent of this issue I had recently. But I am not familiar enough with Foundation’s guts to know if the two issues are actually related or if they are just similar.