React native & Expo issue! Error during expo prebuild (missing RiveRuntime (= 5.11.3))
I've just paid for a year subscription with Rive and unfortunately my developer cannot use my files in our React Native app using Expo.
When I try to create a expo development build with Rive I get an error message:
Finished prebuild Something went wrong running pod install in the ios directory. Command pod install failed. └─ Cause: CocoaPods could not find compatible versions for pod “RiveRuntime”: In Podfile: rive-react-native (from ../node_modules/rive-react-native) was resolved to 7.0.3, which depends on RiveRuntime (= 5.11.3) None of your spec sources contain a spec satisfying the dependency: RiveRuntime (= 5.11.3). You have either:
mistyped the name or version.
not added the source repo that hosts the Podspec to your Podfile
Steps to reproduce:
Start an expo project with create-expo-app
npm install rive-react-native
set up eas build
run eas build --profile simulator --clear-cache OR npx expo prebuild -p ios --clean (both lead to the same error)
Hi
There is also this issue that discusses a automated way to add assets through a plugin system: https://github.com/rive-app/rive-react-native/issues/185
Hi Gordon, I was following that doc to install Rive, including the deployment target step. The error happens during the prebuild stage when adding the rive-react-native package, not the rive assets. I've sadly not been able to reach that step. I can't get the package installed. (using expo sdk 51.0.2 and rive-react-native 7.0.3)
Have you guys been able to recreate my steps with the above versions of expo and react native?
While we resolve the issue, you should be able to use the previous release by pinning the version to "rive-react-native": "7.0.2"
in package.json
.
Let me know if this doesn't work for you and I'll update here once it's resolved.
ah yes that works, I'll use this version until you fix 7.0.3, thank you!!
The fix is up and should work! Version 7.0.4
We pushed the fix for the iOS runtime earlier we just needed to update React Native to use the latest.
You can update your package.json
file to rive-react-native": "7.0.4"
and force an update:npm i
cd ios
pod update RiveRuntime
Amazing, thank you so much Gordon!