livekit / client-sdk-react-native

Official React Native SDK for LiveKit.
https://livekit.io
Apache License 2.0
123 stars 32 forks source link

README instructions for Expo apps cause expo prebuild to fail #180

Closed raghavsethi closed 1 month ago

raghavsethi commented 1 month ago

Describe the bug

Installation instructions in expo plugin README are either incomplete, out of date, or do not work. Full list of things tried are here, but if the instructions are followed, npx expo prebuild --clean produces:

⚠️  Something went wrong running `pod install` in the `ios` directory.
Command `pod install` failed.
└─ Cause: Unable to find a specification for `livekit-react-native-webrtc` depended upon by `livekit-react-native`

You have either:
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.

To Reproduce

Steps to reproduce the behavior:

npx expo install @livekit/react-native @livekit/react-native-expo-plugin
npx expo install react-native-webrtc @config-plugins/react-native-webrtc

And add @livekit/react-native-expo-plugin to the list of plugins in app.config.js

Run npx expo prebuild --clean.

Expected behavior

Prebuild should succeed without errors

Device Info:

Issue happens prior to using device/simulator.

Dependencies Info (please reference your package-lock.json or yarn.lock file):

@livekit/react-native: 2.4.2 @livekit/react-native-expo-plugin: 1.0.0 react-native-webrtc: 124.0.4 @config-plugins/react-native-webrtc: 9.0.0

Additional context Issue in client-sdk-react-native-expo-plugin repo: https://github.com/livekit/client-sdk-react-native-expo-plugin/issues/2, re-posted here since this repo seems like the root for the project.

Excited to try out LiveKit, so I'd love any advice or pointers!