Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CocoaPods could not find compatible versions for pod "RCT-Folly": #308

Open
1 task done
OmkarK45 opened this issue Dec 16, 2024 · 3 comments
Open
1 task done

CocoaPods could not find compatible versions for pod "RCT-Folly": #308

OmkarK45 opened this issue Dec 16, 2024 · 3 comments

Comments

@OmkarK45
Copy link

Environment

System:
  OS: macOS 14.6.1
  CPU: (8) arm64 Apple M1 Pro
  Memory: 82.47 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 18.18.2
    path: ~/.nvm/versions/node/v18.18.2/bin/node
  Yarn:
    version: 1.22.19
    path: ~/.nvm/versions/node/v18.18.2/bin/yarn
  npm:
    version: 9.8.1
    path: ~/.nvm/versions/node/v18.18.2/bin/npm
  Watchman: Not Found
Managers:
  CocoaPods:
    version: 1.15.2
    path: /opt/homebrew/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.1
      - iOS 18.1
      - macOS 15.1
      - tvOS 18.1
      - visionOS 2.1
      - watchOS 11.1
  Android SDK: Not Found
IDEs:
  Android Studio: 2024.1 AI-241.18034.62.2411.12071903
  Xcode:
    version: 16.1/16B40
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.11
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 15.0.1
    wanted: 15.0.1
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.76.4
    wanted: 0.76.4
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: Not found
  newArchEnabled: false

Things I’ve done to figure out my issue

Upgrading version

  • Upgrading to React Native 0.76.4

Description

  • I've applied changes from the upgrade helper in my react native project, when trying to install pods, I get the following error
[!] CocoaPods could not find compatible versions for pod "RCT-Folly":
  In Podfile:
    RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`)

    React-rendererdebug (from `../node_modules/react-native/ReactCommon/react/renderer/debug`) was resolved to 0.76.4, which depends on
      RCT-Folly (= 2024.01.01.00)

Reproducible demo

  • WIP
@incognos
Copy link

Hi,

change this line:
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

into

pod 'RCT-Folly', :podspec => '../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec'

And that will be the start of the pain... more to come.

@OmkarK45
Copy link
Author

OmkarK45 commented Dec 19, 2024

@incognos Thanks for checking. I don't have any such line in my podfile to begin with :/

@OmkarK45
Copy link
Author

What probably would work for me:

  1. I had two own packages that used different versions of RCT Folly or rather had mentioned RCT Folly within them
  2. When I delete those packages, pod install succeeds

From this photo I deleted react-native-simple-biometrics & the redacted package & ran pod install. It succeeded.

The solution is to have these packages use the appropriate RCT Folly version. It should be same as the one React Native expects

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants