react-native icon indicating copy to clipboard operation
react-native copied to clipboard

react-native init failing: "None of your spec sources contain a spec satisfying the dependency: `FlipperKit/FlipperKitLayoutPlugin (= 0.182.0)`."

Open mrsubtle opened this issue 2 years ago • 4 comments
trafficstars

Description

Running in MacOS 13.5.2

After resolving the known ActiveSupport issue (issue #40737), the last step is to run bundle exec pod install to install the pods defined in the Podfile.

Terminal output:

Framework build type is static library
[Codegen] Generating ./build/generated/ios/React-Codegen.podspec.json
Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
[Codegen] Found FBReactNativeSpec
Fetching podspec for `RCT-Folly` from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`
[Codegen] Found rncore
Fetching podspec for `boost` from `../node_modules/react-native/third-party-podspecs/boost.podspec`
Fetching podspec for `glog` from `../node_modules/react-native/third-party-podspecs/glog.podspec`
Fetching podspec for `hermes-engine` from `../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec`
[Hermes] Using the release tarball from Maven Central
[!] CocoaPods could not find compatible versions for pod "FlipperKit/FlipperKitLayoutPlugin":
  In Podfile:
    FlipperKit/FlipperKitLayoutPlugin (= 0.182.0)

None of your spec sources contain a spec satisfying the dependency: `FlipperKit/FlipperKitLayoutPlugin (= 0.182.0)`.

You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.

React Native Version

0.72.6

Output of npx react-native info

info Fetching system and libraries information...
System:
  OS: macOS 13.5.2
  CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  Memory: 4.09 GB / 32.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 19.2.0
    path: /usr/local/bin/node
  Yarn:
    version: 1.22.19
    path: /usr/local/bin/yarn
  npm:
    version: 8.19.3
    path: /usr/local/bin/npm
  Watchman:
    version: 2023.10.09.00
    path: /usr/local/bin/watchman
Managers:
  CocoaPods: Not Found
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.0
      - iOS 17.0
      - macOS 14.0
      - tvOS 17.0
      - watchOS 10.0
  Android SDK:
    API Levels:
      - "24"
      - "25"
    Build Tools:
      - 25.0.2
      - 33.0.0
    System Images:
      - a...google_apis | Google APIs Intel x86 Atom Sys...
    Android NDK: Not Found
IDEs:
  Android Studio: 2021.2 AI-212.5712.43.2112.8815526
  Xcode:
    version: 15.0.1/15A507
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 1.8.0_292
    path: /usr/bin/javac
  Ruby:
    version: 3.2.2
    path: /Users/rbennett/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.72.6
    wanted: 0.72.6
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

Steps to reproduce

  1. I ran the standard npx react-native init AwesomeProject command.
  2. Resolved the ActiveSupport issue via the steps provided in: Issue #40737
  3. Last step in #40737 is to run bundle exec pod install and this is where I get the FlipperKit versioning error.

Snack, screenshot, or link to a repository

image

mrsubtle avatar Oct 23 '23 17:10 mrsubtle

:warning: Missing Reproducible Example
:information_source: We could not detect a reproducible example in your issue report. Please provide either:
  • If your bug is UI related: a Snack
  • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.

github-actions[bot] avatar Oct 23 '23 17:10 github-actions[bot]

For those interested, a workaround is to bundle with the NO_FLIPPER=1 flag. But as you'd expect, you cannot use FlipperKit afterwards.

NO_FLIPPER=1 bundle exec pod install --project-directory=ios in the project root.

mrsubtle avatar Oct 23 '23 19:10 mrsubtle

There are no errors when creating the React application, or running the ios, but it remains at the same stage and does not run in the simulator.

https://github.com/facebook/react-native/assets/46262018/4a3d2390-18ad-441c-a8fe-d82e90419de6

fkazemi5236 avatar Oct 24 '23 09:10 fkazemi5236

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Apr 23 '24 05:04 github-actions[bot]

This issue was closed because it has been stalled for 7 days with no activity.

github-actions[bot] avatar Apr 30 '24 05:04 github-actions[bot]