Crash on iOS 14.x because iOS 15 symbols not found

I'm trying to conditionally support new features in iOS 15 and watchOS 8 by using the @available modifier. However, when running on iOS 14.x the app crashes on launch looking for symbols that found only in iOS 15. For example, scenePadding:

dyld: Symbol not found: _$s7SwiftUI4ViewPAAE12scenePaddingyQrAA4EdgeO3SetVFQOMQ

That class that uses scenePadding is in my watchOS app and is has an @available modifier. Any idea what's going on?

I have the same problem when trying to use something from iOS 15 only, using if #available(iOS 15.0, *) {. Crashes on iOS 14 with "dyld: Symbol not found". Have you found a solution to this problem?

Also facing the same issue when trying to run on iOS 14 using Xcode Version 13.2.1 (13C100) @available(iOS 15.0, *) @FocusState private var focusInstitution: Bool

Crash on iOS 14.x because iOS 15 symbols not found
 
 
Q