Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build on Xcode 14: Stored properties cannot be marked potentially unavailable with '@available' #33

Closed
KevinQuisquater opened this issue Sep 12, 2022 · 3 comments

Comments

@KevinQuisquater
Copy link

Hi everyone, before working on a simple fix, just just wanted to check whether everyone is encountering this issue with Xcode 14?

Lines 128-131 of SwiftFortuneWheel.swift

#if os(iOS)
    @available(iOS 10.0, iOSApplicationExtension 10.0, *)
    private(set) lazy var impactFeedbackgenerator = UIImpactFeedbackGenerator(style: .light)
#endif

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

Other librairies have encountered the same issue, the fix is not too difficult.
Could someone confirm they have the same issue? Thanks.

@KevinQuisquater
Copy link
Author

Example of a fix in another library:

pichillilorenzo/flutter_inappwebview@06f87e8

sh-khashimov added a commit that referenced this issue Sep 16, 2022
@ankitjain02
Copy link

@sh-khashimov I am still facing the same issue and i have taken the latest version of code. Can you please confirm if the fix is merged.

@sh-khashimov
Copy link
Owner

sh-khashimov commented Nov 16, 2022

@sh-khashimov I am still facing the same issue and i have taken the latest version of code. Can you please confirm if the fix is merged.

Yeah, it is. The code is there, using the Xcode 14.0 building without issue.
You should try to clean the cache.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants