Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

❌ (node_modules/react-native-jw-media-player/ios/RNJWPlayer/RNJWPlayerView.swift:13:8) import GoogleCast | ^ no such module 'GoogleCast' #345

Open
paulrinaldi opened this issue Feb 23, 2024 · 5 comments

Comments

@paulrinaldi
Copy link

Environment:
Apple M1 Pro
Sonoma 14.3.1 (23D60)
Package Manager Used:
yarn
Simulator running: Xcode's iPhone 6s Plus iOS 17.2

Versions:
node -v outputs v21.6.1

app.json:

...
"plugins": [
      [
        "expo-build-properties",
        {
          "ios": {
            "deploymentTarget": "14.0"
          }
        }
      ]
    ]
...

Since when deployment target was 13.0-13.9, errored with need to target a higher version for compatible e.g.

Specs satisfying the `RNJWPlayer (from `../node_modules/react-native-jw-media-player`)` dependency were found, but they required a higher minimum deployment target.

package.json

    "expo": "~50.0.7",
    "expo-build-properties": "~0.11.1",
    "expo-status-bar": "~1.11.1",
    "react": "18.2.0",
    "react-native": "0.73.4",
    "react-native-jw-media-player": "^0.2.44"

Actual:

npx expo run:ios

› Compiling react-native Pods/React-graphics » RCTPlatformColorUtils.mm
❌  (node_modules/react-native-jw-media-player/ios/RNJWPlayer/RNJWPlayerView.swift:13:8)

  11 | import MediaPlayer
  12 | import React
> 13 | import GoogleCast
     |        ^ no such module 'GoogleCast'
  14 | import JWPlayerKit
  ...
  › Compiling react-native Pods/React-cxxreact » ReactMarker.cpp
  › 1 error(s), and 0 warning(s)

CommandError: Failed to build iOS project. "xcodebuild" exited with error code 65.

Expected:

npx expo run:ios
Correctly building and running on iOS simulator

@paulrinaldi
Copy link
Author

I think this is an issue on M1 macs (a non x86 processor).

@paulrinaldi
Copy link
Author

paulrinaldi commented Feb 29, 2024

Looks like I need to follow the instructions in the readme:
https://github.com/chaimPaneth/react-native-jw-media-player?tab=readme-ov-file#ios-1
and go to
https://docs.jwplayer.com/players/docs/ios-enable-casting-to-chromecast-devices#requirement
and follow these instructions as well though it seems quite involved.

@paulrinaldi
Copy link
Author

Has anyone been able to successfully build on iOS without performing the manual framework setup?

@charlieperson
Copy link

Hey Paul! Also having similar issues. Lmk if you find anything

@chriszs
Copy link

chriszs commented May 4, 2024

Looks like this may have been addressed in 8d6c675. I no longer encounter it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants