rn-native-mqtt icon indicating copy to clipboard operation
rn-native-mqtt copied to clipboard

error: potentially unavailable with '@available'

Open askie opened this issue 3 years ago • 7 comments
trafficstars

.../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'

askie avatar Dec 29 '21 07:12 askie

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

15638228357 avatar Jan 21 '22 09:01 15638228357

I am guessing this repo is no longer supported.

Rohithzr avatar Feb 02 '22 06:02 Rohithzr

Same issue.

vish2595 avatar Feb 02 '22 06:02 vish2595

@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

Rohithzr avatar Feb 02 '22 08:02 Rohithzr

getting same error, how to fix?

kusaljr avatar Apr 07 '22 10:04 kusaljr

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

Luca-Lin avatar May 05 '22 09:05 Luca-Lin

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

Luca-Lin avatar May 10 '22 10:05 Luca-Lin