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

How to use SDK in 'cocoapods'.

Open std-s opened this issue 3 years ago • 7 comments

hi, how to use SDK in 'cocoapods'.

std-s avatar Jun 09 '22 10:06 std-s

we have not yet published the SDK to cocoapods. You should be able to use Swift packages in addition to Cocoapods.

davidzhao avatar Jun 12 '22 05:06 davidzhao

A point was raised in #101 that if a Cocoapod library was to bundle this, they are not able to use Swift Packages. That's a good point.

davidzhao avatar Jun 22 '22 23:06 davidzhao

@davidzhao any plans to support Cocoapods? We are also building a library for both pods and SPM but can't embed LiveKit in the pod version.

tgyhlsb avatar Jul 05 '22 14:07 tgyhlsb

@davidzhao any plans to support Cocoapods? We are also building a library for both pods and SPM but can't embed LiveKit in the pod version.

@tgyhlsb I rewrite this library to support Cocoapods, you can review it here: https://github.com/baveku/iOS_LiveKit My lib is out of date. Next month, I will refactor and rewrite new version to support iOS and Cocoapods. Based on this library

baveku avatar Jul 11 '22 03:07 baveku

Update: Cocoapods support should be available from next version. 🙂

hiroshihorie avatar Jul 21 '22 13:07 hiroshihorie

I've seen this commit https://github.com/livekit/client-sdk-swift/commit/d7a68b34af8ab2c5e6312458f75f0795ae9bd862 \o/

Maybe it's too early, but it does not seem to have been pushed to trunk, right?

Thanks for working on it (:

tgyhlsb avatar Aug 09 '22 11:08 tgyhlsb

I think that because spec.source_files is commented out in https://github.com/livekit/client-sdk-swift/blob/main/LiveKit.podspec - the Pod does not actually contain any LiveKit source files - and does not produce the framework correctly.

kubamatula avatar Aug 09 '22 21:08 kubamatula

Hi, the podspec is published to Cocoapods with name LiveKitClient.

This is a minimal example including LiveKit with Cocoapods: https://github.com/livekit/client-example-collection-swift/tree/main/using-cocoapods

I will close this for now.

hiroshihorie avatar Sep 13 '22 07:09 hiroshihorie

Hi, I've checked the LiveKitClient pod but I'm having some troubles when I try to archive a project while using it. It's related to a missing module. Can you take a look?

Thanks

jlopesoares avatar Sep 23 '22 08:09 jlopesoares