facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
119.31k stars 24.35k forks source link

Pod Install returning error about react-utils when upgrading from 0.62.2 to 0.72.10 #262 #43124

Closed gustavos00 closed 9 months ago

gustavos00 commented 9 months ago

Old Version

0.62.2

New Version

0.72.10

Description

When I try to run the pod install inside the iOS folder. He is returning an error about 'react-utils'. I already tried upgrading the ruby and the Cocoapods versions to make sure it is not a missing version.

image

Steps to reproduce

  1. Run the pod install
  2. Notice the error

Affected Platforms

Build - MacOS

Output of npx react-native info

System:
  OS: macOS 14.3
  CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  Memory: 26.32 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 16.0.0
    path: /usr/local/bin/node
  Yarn:
    version: 1.22.19
    path: /usr/local/bin/yarn
  npm:
    version: 7.10.0
    path: /usr/local/bin/npm
  Watchman:
    version: 2023.12.04.00
    path: /usr/local/bin/watchman
Managers:
  CocoaPods:
    version: 1.15.2
    path: /Users/gsantos/.rbenv/shims/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.2
      - iOS 17.2
      - macOS 14.2
      - tvOS 17.2
      - visionOS 1.0
      - watchOS 10.2
  Android SDK: Not Found
IDEs:
  Android Studio: 2023.1 AI-231.9392.1.2311.11255304
  Xcode:
    version: 15.2/15C500b
    path: /usr/bin/xcodebuild
Languages:
  Java: Not Found
  Ruby:
    version: 3.0.6
    path: /Users/gsantos/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.72.10
    wanted: 0.72.10
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: false
  newArchEnabled: false
iOS:
  hermesEnabled: Not found
  newArchEnabled: false

Stacktrace or Logs

RNFBAnalytics: Using Firebase/AnalyticsWithoutAdIdSupport pod in place of default Firebase/Analytics
Adding a custom script phase for Pod RNFBApp: [RNFB] Core Configuration
Auto-linking React Native modules for target `<app-name>`: RNAppleAuthentication, RNCMaskedView, RNCPushNotificationIOS, RNDateTimePicker, RNExitApp, RNFBAnalytics, RNFBApp, RNFS, RNFastImage, RNFileViewer, RNGestureHandler, RNImageCropPicker, RNKeychain, RNPermissions, RNReanimated, RNScreens, RNSentry, RNSoundPlayer, ReactNativeExceptionHandler, intercom-react-native, react-native-background-timer, react-native-config, react-native-document-picker, react-native-fbsdk-next, react-native-image-picker, react-native-netinfo, react-native-pager-view, react-native-pspdfkit, react-native-render-html, react-native-safe-area-context, react-native-simple-toast, react-native-track-player, react-native-udp, react-native-video, react-native-webview, and rn-fetch-blob
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`
RNFBAnalytics: Using Firebase/AnalyticsWithoutAdIdSupport pod in place of default Firebase/Analytics
Fetching podspec for `glog` from `../node_modules/react-native/third-party-podspecs/glog.podspec`
/Users/gsantos/Projects/<project_name>/node_modules/react-native-fbsdk-next/react-native-fbsdk-next.podspec:4: warning: already initialized constant Pod::FBSDKVersion
/Users/gsantos/Projects/<project_name>/node_modules/react-native-fbsdk-next/react-native-fbsdk-next.podspec:4: warning: previous definition of FBSDKVersion was here
[!] Unable to find a specification for `React-utils` depended upon by `React-Core`

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.

Reproducer

_

Screenshots and Videos

image
github-actions[bot] commented 9 months ago
: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] commented 9 months ago
:warning: Issue is a Question
:information_source: We are using GitHub issues exclusively to track bugs in the core React Native library. Please try asking over on Stack Overflow as it is better suited for this type of question.
Kabeer-Haseja commented 6 months ago

getting same issue if i update react native from 0.64.2 to 0.74.0

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

You have either:

hichemBAALI commented 6 months ago

getting same issue if i update react native from 0.64.2 to 0.74.0

[!] 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.

Same here. Any update ?

SantiSarmiento commented 4 months ago

getting same issue if i update react native from 0.64.2 to 0.74.0

[!] 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.

Same here. Any solution ?

reinismu commented 3 months ago

Either update react-native-reanimated or patch it

diff --git a/node_modules/react-native-reanimated/RNReanimated.podspec b/node_modules/react-native-reanimated/RNReanimated.podspec
index 1cbeafc..dbbf81a 100644
--- a/node_modules/react-native-reanimated/RNReanimated.podspec
+++ b/node_modules/react-native-reanimated/RNReanimated.podspec
@@ -55,7 +55,9 @@ Pod::Spec.new do |s|
   s.dependency "RCTTypeSafety"
   s.dependency "ReactCommon/turbomodule/core"
   s.dependency 'FBLazyVector'
-  s.dependency 'FBReactNativeSpec'
+  if config[:react_native_minor_version] <= 71
+    s.dependency 'FBReactNativeSpec'
+  end
   s.dependency 'RCTRequired'
   s.dependency 'RCTTypeSafety'
   s.dependency 'React-Core'

https://github.com/software-mansion/react-native-reanimated/pull/4253/files#diff-2f3e36d153f0b1ce894c5dd8afad3b4119dd38054d65d7a593f60cf2762edf1aR69