chaimPaneth / react-native-jw-media-player

React-Native Android/iOS bridge for JWPlayer SDK (https://www.jwplayer.com/)
MIT License
197 stars 92 forks source link

Upgrading to 0.2.40 doesn't work on iOS #328

Closed mikeislearning closed 9 months ago

mikeislearning commented 11 months ago

Two errors seem to show up when I run npx pod-install after upgrading:

[!] CocoaPods could not find compatible versions for pod "JWPlayerKit":
  In snapshot (Podfile.lock):
    JWPlayerKit (= 4.14.0, ~> 4.14.0)

  In Podfile:
    RNJWPlayer (from `../node_modules/react-native-jw-media-player`) was resolved to 0.2.40, which depends on
      JWPlayerKit (~> 4.17.0)

You have either:
 * changed the constraints of dependency `JWPlayerKit` inside your development pod `RNJWPlayer`.
   You should run `pod update JWPlayerKit` to apply changes you've made.
[!] CocoaPods could not find compatible versions for pod "google-cast-sdk":
  In snapshot (Podfile.lock):
    google-cast-sdk (= 4.7.0, ~> 4.7.0)

  In Podfile:
    RNJWPlayer (from `../node_modules/react-native-jw-media-player`) was resolved to 0.2.40, which depends on
      google-cast-sdk (~> 4.8)

You have either:
 * changed the constraints of dependency `google-cast-sdk` inside your development pod `RNJWPlayer`.
   You should run `pod update google-cast-sdk` to apply changes you've made.

Running the suggested commands fails as well. I've tried deleting the Pods and the Podfile.lock, but it doesn't seem to fix anything.

Any suggestions are appreciated!

Varunvnair4 commented 11 months ago

I was also facing the same issue. For me, it got fixed. Here is what I did.

updated podfile platform :ios, '12.0' to platform :ios, '14.0'

then did----> pod cache clean --all after that --> pod install --repo-update

or try deleting the podfile.lock and install the pods

Successfully installed 👍🏻

anthlasserre commented 10 months ago

We had experimented with it as well with my colleague @ddolheguy and it all sorted with your last comment @Varunvnair4. Thanks a lot!

  1. Updated your platform minimum ios version to 14.0 platform :ios, '14.0'
  2. pod cache clean --all
  3. pod install --repo-update
  4. Clean XCode build (CMD + Shift + K)
  5. Remove Derived data
  6. Re-build
chaimPaneth commented 9 months ago

Closing as it was resolved.