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

Fix compile error "Enum cases with associated values cannot be marked potentially unavailable with '@available'" #391

Merged
merged 3 commits into from
Sep 25, 2021

Conversation

KarinBerg
Copy link
Contributor

As far I understood the problem we have two possible solutions:

  • Either need to mark the whole enum as @available(iOS 13.0, *)
  • Or need to increase your deployment target to iOS 13.0

Last one is not want we want to do for this library. First one could be achieved with "Nested Enums" (At least I think so).
This is want I did in this pull request. Want do you think? Feedback highly welcome. 🤗

For info about "Nested Enums" see https://developerinsider.co/advanced-enum-enumerations-by-example-swift-programming-language/

Source/CocoaMQTTTypes.swift Outdated Show resolved Hide resolved
@leeway1208
Copy link
Collaborator

so cool

@JaylinYu JaylinYu merged commit e1be2a2 into emqx:master Sep 25, 2021
@KarinBerg KarinBerg deleted the #381-Does-not-Compile-with-Xcode-13 branch September 25, 2021 08:26
@klauslanza
Copy link

I think a new release of the library could help out people using Cocoapod integration and missing out on the latest commits to master...
Are there any plan on this?

@KarinBerg KarinBerg restored the #381-Does-not-Compile-with-Xcode-13 branch March 1, 2023 22:18
@KarinBerg KarinBerg deleted the #381-Does-not-Compile-with-Xcode-13 branch February 10, 2024 17:17
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

Successfully merging this pull request may close these issues.

5 participants