rive-app / rive-react-native

MIT License
548 stars 40 forks source link

CocoaPods could not find compatible versions for pod "rive-react-native" #153

Open phuocantd opened 1 year ago

phuocantd commented 1 year ago

[!] CocoaPods could not find compatible versions for pod "rive-react-native": In Podfile: rive-react-native (from ../node_modules/rive-react-native)

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

current version

"react": "18.2.0",
"react-native": "0.71.0"
BalogunofAfrica commented 1 year ago

Hi @phuocantd, have you been able to resolve this?

BalogunofAfrica commented 1 year ago

Found the solution, according to the docs, the minimum iOS target is 14.0. So, in your podfile set your iOS deployment target to 14.0 or higher.

Just note that rive might not work on older iOS devices.

evaldsurtans commented 8 months ago

To this you can add

platform :ios, '14.0' in Podfile under section target 'myapp' do

evaldsurtans commented 8 months ago

Still with latest version this does not work out of the box

evaldsurtans commented 8 months ago

latest react-native and rive-react-native

ikotsov commented 1 week ago

Found the solution, according to the docs, the minimum iOS target is 14.0. So, in your podfile set your iOS deployment target to 14.0 or higher.

Just note that rive might not work on older iOS devices.

A remark on this:

In Expo managed workflow, we are not able to edit the Podfile. In this case, what we can do, is to install the rive-react-native 2.1.37 version.

This happens until Expo SDK 51 which targets ios 13.4 version. In Expo SDK 52, the targeted ios version will change to 15.1. Expo SDK 52 is currently in beta, so we may keep an eye on it, and after it is released, we can use the rive-react-native latest version.