livekit / client-sdk-flutter

Flutter Client SDK for LiveKit
https://docs.livekit.io
Apache License 2.0
266 stars 132 forks source link

CocoaPods could not find compatible versions for pod "livekit_client" #362

Open gettoknowdavid opened 1 year ago

gettoknowdavid commented 1 year ago

Description Livekit implementation on Android works well, but when I try to run it on iOS, we run into this error:

[!] CocoaPods could not find compatible versions for pod "livekit_client":
  In Podfile:
   livekit_client (from '.symlinks/plugins/livekit_client/ios')

Specs satisfying the 'livekit_client (from '.symlinks/plugins/livekit_client/ios')' dependency were found, but they required a higher minimum deployment target.

Steps To Reproduce

Additional Context I tried changing the minimum deployment target (12.1, 13.6 and even 16.1) but it did not resolve the issue. How can I solve this?

davidzhao commented 1 year ago

try running pod repo update first

cloudwebrtc commented 1 year ago

This usually requires clearing the pod cache, Please refer to the steps below

1) Make sure platform :ios, '12.1' is in ios/Podfile

2) Run the following commands

flutter clean
cd ios && rm -rf Pods Podfile.lock && pod cache clean -all && pod deintegrate
cd .. && flutter pub get 
cd ios && pod install --repo-update
cd .. && flutter build ios
Khanhdtr commented 9 months ago

pod "livekit_client" will conflict with library "livekit_client" from flutter. Change "spec.name" in LiveKitClient.podspec to other name it will work