emqx / CocoaMQTT

MQTT 5.0 client library for iOS and macOS written in Swift
https://www.emqx.com/en
Other
1.6k stars 420 forks source link

CocoaMQTTWebSocket.swift:459:1 Type 'CocoaMQTTWebSocket.StarscreamConnection' does not conform to protocol 'WebSocketDelegate' #581

Open freemadc2 opened 6 months ago

freemadc2 commented 6 months ago

Getting a couple of weird errors. For now, im going to branch off and try to fix this. I attached the errors as screenshots below.

Version 15.3 (15E204a) Macbook pro Apple M1 Max Sonoma 14.2.1 (23C71)

I added project via SPM

Screenshot 2024-03-20 at 1 13 03 PM Screenshot 2024-03-20 at 1 12 55 PM
EdisonChan-dev commented 6 months ago

https://github.com/emqx/CocoaMQTT/issues/558 FYI

michael-aiphone commented 6 months ago

Also seeing this issue on a fresh UIKit app with only CocoaMQTT added as a dependency via SPM. The default ViewController for the app was extended to conform to CocoaMQTT5Delegate resulting in this error

freemadc2 commented 5 months ago

I had to fork to fix the issue. Only way possible to get working.

riccardoch commented 5 months ago

Resolved for now by adding Starscream as a package and setting it to the Exact Version 4.0.4, as described here.