lottie-react-native: Error in Latest versions (3.1.8)

Description

[!] CocoaPods could not find compatible versions for pod “lottie-ios”: In snapshot (Podfile.lock): lottie-ios (from ../node_modules/lottie-ios)

In Podfile: lottie-ios (from ../node_modules/lottie-ios)

lottie-react-native (from `../node_modules/lottie-react-native`) was resolved to 3.5.0, which depends on
  lottie-ios (~> 3.1.8)

##[error]The process ‘/usr/local/lib/ruby/gems/2.7.0/bin/pod’ failed with exit code 1 ##[error]The ‘pod’ command failed with error: The process ‘/usr/local/lib/ruby/gems/2.7.0/bin/pod’ failed with exit code 1 ##[section]Finishing: Pod install ##[section]Starting: Xcode build (signed)

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 24 (4 by maintainers)

Most upvoted comments

npm uninstall lottie-ios
npm install lottie-ios@3.1.8
npx pod-install

That’s what worked for me.

@emilioicai unfortunately that did not work, getting this error still:

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

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

I’m on: “lottie-ios”: “3.2.3”, “lottie-react-native”: “4.1.3”, “react-native”: “0.64.1”,

Try this: npm install lottie-react-native@4.0.3 npm install lottie-ios@3.2.3

npm uninstall lottie-ios
npm install lottie-ios@3.1.8
npx pod-install

That’s what worked for me.

also this works:

npm uninstall lottie-ios
npm install lottie-ios@3.1.9
npx pod-install

it was fixed after macbook restart.

Same issue. Restart not help

  1. npm uninstall lottie-ios or yarn remove lottie-ios
  2. npx pod-install or cd ios && pod install // do that after remove lottie-ios
  3. npm install lottie-ios@3.1.8 || yarn add lottie-ios@x.x.x // where x.x.x = specific version
  4. npx pod-install || cd ios && pod install

This is worked for me.

Try installing lottie-react-native 4.0.3, lottie-ios 3.2.3, remove Podfile folder and Podfile lock, and run pod install once again

[!] CocoaPods could not find compatible versions for pod "lottie-ios":
  In Podfile:
    lottie-ios (from `../node_modules/lottie-ios`)

    lottie-react-native (from `../node_modules/lottie-react-native`) was resolved to 4.0.2, which depends on
      lottie-ios (~> 3.1.8)
    "lottie-ios": "^3.2.3",
    "lottie-react-native": "^4.0.0",
    "react-native": "0.64.1",

@artdevgame it is the next priority, yes. Actually, if you need it right now you can try just updating the dependency manually on a fork. I tried it myself and seems to be working (almost) out of the box but I would like to settle version 4.0.2 before preparing another minor update.

getting the same error. need help 😦

@emilioicai I still have this issue with the latest lottie for RN (4.0.2) and lottie-ios 3.2.0. Are you able to update the peer dependency?

@emilioicai unfortunately that did not work, getting this error still:

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

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

I’m on: “lottie-ios”: “3.2.3”, “lottie-react-native”: “4.1.3”, “react-native”: “0.64.1”,

any news? nothing works

@emilioicai I apologise, it would be because of my mistake. I attempted to update lottie-ios to 3.2.0 after updating lottie-react-native, before reading the readme that states we should install 3.1.8.