Open wzJun1 opened 1 week ago
My current solution is to no longer use add
and remove
with @objc
, but instead use xxx.delegates.add()
directly.
eg:
Hmm.. It's odd that you need to do that, is it only with TrackDelegate ?
Not only 'TrackDelegate', but all delegate
add
remove
with @objc
, as shown in the screenshot below, are like this.
Describe the bug After pulling the source code locally, some Delegates will report errors
SDK Version 2.0.10 ~ 2.0.11
iOS/macOS Version iOS17.2
Steps to Reproduce
No need for Swift Package Manager, simply pull the source code locally
If I remove
@objc
, it will work normally. (or do I just usenewValue?.delegates.add(delegate: self)
It also works (but the entire livekit sdk has too many delegates, it is too troublesome to change them all)I feel like it's a problem with the Swift version being too high, but I don't know how to solve it.
Screenshots![171719461830_ pic](https://github.com/livekit/client-sdk-swift/assets/52230047/0391bb9b-2070-40dd-ab8c-1280b38ab436)