Xcode 14 beta error: Stored properties cannot be marked potentially unavailable with '@available'

Viewed 3524

I get this error when I run my app on Xcode 14 beta and I don't know how to fix it:

Stored properties cannot be marked potentially unavailable with '@available'

It doesn't pop up when I run Xcode 13, and the app runs smoothly. I am in the .xcworkspace file.

2 Answers

I have this error in Flutter project in XCode 14. One of the external packages were using:

@available(iOS 14.0, *) My current fix is:

Update version in Podfile platform :ios, '14.0', pod update && Pod install

Be sure to change both sections of the iOS Deployment Target in the Build Settings tab, like in my picture: enter image description here

Related