Linking warning on macOS: ld: warning: building for macOS-11.0, but linking with dylib '/usr/lib/swift/<some missing file>' which was built for newer version 13.0

I am getting some warning when linking on macOS. We also build on linux (our target platform) without

All warnings relates to missing files on macOS:

  • libswiftCore.dylib
  • libswiftSwiftOnoneSupport.dylib
  • libswift_Builtin_float.dylib
  • libswift_Concurrency.dylib
  • libswiftCore.dylib
  • libswiftSwiftOnoneSupport.dylib
  • libswift_Builtin_float.dylib
  • libswift_Concurrency.dylib

Where can I configure the "building for" to be a newer version (13.0 or even newer) to avoid this warning. I have seen this reported in an issue on swift-integration-tests: