client-sdk-swift icon indicating copy to clipboard operation
client-sdk-swift copied to clipboard

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

Open indaos opened this issue 1 year ago • 2 comments

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?

indaos avatar Apr 12 '24 12:04 indaos

Hello, which Xcode version are you using ?

hiroshihorie avatar Jun 05 '24 16:06 hiroshihorie

Hi! 15.3

indaos avatar Jun 10 '24 07:06 indaos