Search code examples
iosswiftreact-nativepodfilepodfile-lock

Reciving Unable to find a specification for FBReactNativeSpec depended upon by RNReanimated in a React Native Project


I am making a upgrade of the React Native version from the 0.70.6 to 0.74.3.

When I try to run the pod install inside the iOS folder. I receive this error:

[!] Unable to find a specification for `FBReactNativeSpec` depended upon by `RNReanimated`

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

npx react-native info

info

I already triyed with:

  • pod install --repo-update

and:

  • rm podfile.lock
  • pod cache clean --all
  • cd ios && pod install && cd ..

Any ideas ??


Solution

    1. Remove the /ios folder
    2. yarn add react-native-reanimated
    3. pod install