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

error: potentially unavailable with '@available' #33

Open
askie opened this issue Dec 29, 2021 · 7 comments
Open

error: potentially unavailable with '@available' #33

askie opened this issue Dec 29, 2021 · 7 comments

Comments

@askie
Copy link

askie commented Dec 29, 2021

.../node_modules/react-native-native-mqtt/ios/Libraries/CocoaMQTT/CocoaMQTTTypes.swift:66:6: Enum cases with associated values cannot be marked potentially unavailable with '@available'
@15638228357
Copy link

Did you solve it? I upgraded to Xcode 13 and also encountered this problem

@Rohithzr
Copy link

Rohithzr commented Feb 2, 2022

I am guessing this repo is no longer supported.

@vish2595
Copy link

vish2595 commented Feb 2, 2022

Same issue.

@Rohithzr
Copy link

Rohithzr commented Feb 2, 2022

@askie @15638228357

try npm i https://github.com/zivost/rn-native-mqtt.git

requires minimum deployment to be 13 and react-native version 0.61

@kusaljr
Copy link

kusaljr commented Apr 7, 2022

getting same error, how to fix?

@Luca-Lin
Copy link

Luca-Lin commented May 5, 2022

try this
https://github.com/emqx/CocoaMQTT/pull/391/files/520d3c30f3792f2cd39a6b95712043adca65abde
edit
CocoaMQTTTypes.swift
CocoaMQTTWebSocket.swift

@Luca-Lin
Copy link

Luca-Lin commented May 10, 2022

@davesters
Could you please update the dependencies if you have time?Thank you

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

6 participants