LiveKit provides SwiftSDK for integration to the iOS applications. SwiftUI demo project works perfectly with SPM. My goal is to use the SwifUI demo in our project generated with Tuist.
I've created a new target and connected dependencies as I've done for all other targets (our app has many targets and dependencies, connection process was clear). As a demo, I use the same code from the demo project.
The application is launching without any issues. When LiveKit establishes a connection it crashes with “unrecognized selector sent to instance…” (check Error log section)
Tuist demo project :
LiveKitTuist.zip
Download and gererate project with Tuist:
cd LiveKitTuist
tuist fetch
tuist generate
To be sure, it's tusit generation issue I have same project with same structure with clean SPM:
LiveKitXcode.zip
Download and open LiveKitXcode.xcodeproj
As demo credentials for both projects use:
url: wss://livekit.stg.globekeeper.com
token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2OTI4MDAzMzUsImlzcyI6IldSazNUTnZUMjl3OTJRVmZjR0xIVEVsaHp0bGxnWUVlRmJSaXRrTSIsIm5hbWUiOiJ1c2VyMSIsIm5iZiI6MTY5MjcxMzkzNSwic3ViIjoidXNlcjEiLCJ2aWRlbyI6eyJyb29tIjoibXktZmlyc3Qtcm9vbSIsInJvb21Kb2luIjp0cnVlfX0.T1eEavbaVtd1ApskFV3U1pttpJE9fH6A6-cIi-7ooOg
PS: Token expires every 24 hours. I'm going to edit every day.
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[LiveKit.LocalParticipant addDelegate:]: unrecognized selector sent to instance 0x6000007a9810'
13.5.1
3.17.0
Version 14.3.1 (14E300c)
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too