I'm having this issue with my swift package. It was created a few weeks ago with BigSur, as the platform target i put iOS 15. I don't understand what it could be
ld: warning: dylib (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/pm/ManifestAPI/libPackageDescription.dylib) was built for newer macOS version (11.0) than being linked (10.15)