kaltura / playkit-ios-dtg

Download-to-Go for iOS
GNU Affero General Public License v3.0
26 stars 12 forks source link

Unable to add DTG as dependency through cocoaPods #67

Closed Vikram-kr closed 3 years ago

Vikram-kr commented 4 years ago

Describe the bug

Unable to add DTG as dependency through cocoaPods. Getting below error:

CocoaPods could not find compatible versions for pod "M3U8Kit": In Podfile: DownloadToGo (= 3.12.1) was resolved to 3.12.1, which depends on M3U8Kit (= 0.4.1)

To Reproduce

  1. Create a new project.
  2. Initialise cocoaPods by pod init
  3. Add DTG as dependency (pod 'DownloadToGo', '= 3.12.1')
  4. pod install
  5. Observe the error in terminal:

    CocoaPods could not find compatible versions for pod "M3U8Kit": In Podfile: DownloadToGo (= 3.12.1) was resolved to 3.12.1, which depends on M3U8Kit (= 0.4.1)

Expected behavior Should be able to add DTG as dependency through cocoaPods

Logs and Screenshots

Screenshot 2020-11-04 at 10 20 34 PM

Platform

Additional context

  1. Tried to pod repo update and pod install --repo-update as suggested in terminal error
  2. It seems M3U8Kit (= 0.4.1) is no more available. Created a poc project with dependency M3U8Kit (= 0.4.1) and getting same error while M3U8Kit (= 1.0.0) is working as expected.
sheinix commented 4 years ago

Experiencing exact same error, tried pod install pod repo update with no luck. Running BigSur and cocoa pods v1.10.0

My project is actually pointing to the dev branch FEC-10431 which resolves to version 3.12.1.0000

Any guidance on this?

sheinix commented 4 years ago

I solved this issue by downloading locally the DTG dependency and modifying the DTG Podspec to point to 'M3U8Kit' version 1.0.0 which seems the one is working?

Not sure why this happening, but something around 0.4.1 M3U8Kit version is not liking it.

So, in my Podfile:

  ...
  pod 'M3U8Kit'
  pod 'DownloadToGo', :path => 'playkit-ios-dtg-FEC-10431'

Hope it would helps someone.

x-NR-x commented 3 years ago

Hi @Vikram-kr and @sheinix,

This is happening because M3U8Kit versions has been removed from Cocoapods for some reason. We are working on a release with M3U8Kit v1.0.0.

Thanks, Nilit Danan

x-NR-x commented 3 years ago

Hi @Vikram-kr and @sheinix,

Version 3.13.0 has been released with the fix.

Thanks, Nilit Danan