This is exactly the issue that prompted this recent discussion. It tends to come up every year around this time, and I post about it every year for the same reason.
So far, the best workaround I've found is #if canImport(SomeFrameworkIntroducedInTheNewSDK)
, but this only happens to work because there happens to be a new framework introduced in the new SDK.