davesters / rn-native-mqtt

An MQTT client for React Native that actually works and exposes a simple Javascript interface
MIT License
64 stars 44 forks source link

error: potentially unavailable with '@available' #33

Open askie opened 2 years ago

askie commented 2 years ago
.../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 commented 2 years ago

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

Rohithzr commented 2 years ago

I am guessing this repo is no longer supported.

vish2595 commented 2 years ago

Same issue.

Rohithzr commented 2 years ago

@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 commented 2 years ago

getting same error, how to fix?

Luca-Lin commented 2 years ago

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

Luca-Lin commented 2 years ago

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