Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CocoaPods could not find compatible versions for pod "lottie-ios"

i can't install react-native-lottie throwing error compatatible version for lottie-react-native CocoaPods could not find compatible versions for pod "lottie-ios"

like image 333
Ruban Dharmaraj Avatar asked Feb 07 '21 07:02

Ruban Dharmaraj


2 Answers

as per the error says we need to go for

npm i [email protected] [email protected] cd ios Pod install

issue Resolved

like image 70
Ruban Dharmaraj Avatar answered Oct 20 '22 10:10

Ruban Dharmaraj


If you get something like this,

[!] 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 3.5.0, which depends on
      lottie-ios (~> 3.1.8)

Then we can resolve it by the following steps,

  • Open terminal in root folder of your react native project.

  • Execute the following commands to install lottie-ios and lottie-react-native packages with the specified version of the cocoa pod error.

    npm install [email protected] 
    npm install [email protected]
    
  • After these package addition move to ios folder and run pod install.

    cd ios
    pod install
    
like image 28
Codemaker Avatar answered Oct 20 '22 10:10

Codemaker