livekit / client-sdk-swift

LiveKit Swift Client SDK. Easily build live audio or video experiences into your mobile app, game or website.
https://livekit.io
Apache License 2.0
174 stars 84 forks source link

Incompatibility Issue with @objc and non-protocol inheritance when BUILD_LIBRARY_FOR_DISTRIBUTION=YES #364

Open indaos opened 2 months ago

indaos commented 2 months ago

Continuing the issue of using version 2 along with the BUILD_LIBRARY_FOR_DISTRIBUTION=YES option, it was somewhat helpful to remove CHeaders from the dependencies.

However, a new problem has arisen related to the protocol declaration:

@objc public protocol AudioTrack where Self: Track {}

When the BUILD_LIBRARY_FOR_DISTRIBUTION option is used, the LiveKit.swiftinterface file has the following code:

@objc public protocol LocalTrack : LiveKit.Track {}

Here, the use of @objc is incompatible with inheriting from the non-protocol type "Track"

Can you help resolve this issue, please?

hiroshihorie commented 1 month ago

Hello, which Xcode version are you using ?

indaos commented 3 weeks ago

Hi! 15.3