XCode 14 SwiftUI dyld symbol not found

I get this error when I run my code on an iOS 14 device using XCode 14.

dyld: Symbol not found: _$s7SwiftUI15GraphicsContextV4fill_4with5styleyAA4PathV_AC7ShadingVAA9FillStyleVtF
Referenced from: ******
Expected in: /System/Library/Frameworks/SwiftUI.framework/SwiftUI

I do not get any errors when I run the same code on an iOS 15 or iOS 16 device. How do I resolve this issue?

It says 's7SwiftUI15GraphicsContextV4fill'. 15. Are you trying to use something that isn't available in iOS14?

XCode 14 SwiftUI dyld symbol not found
 
 
Q