CocoaPods找不到pod“GTMSessionFetcher/Core”RNFBAuth的兼容版本(来自../@react-native-firebase/auth`)已解析为16.5.0

yebdmbv4  于 2023-05-18  发布在  React
关注(0)|答案(1)|浏览(339)

我得到错误,而试图在我的应用程序安装荚我删除了锁podfile.lock,也更新了存储库,但我仍然有问题的Firebase产品有时与auth,有时与dynamiclink或分析,我也试图删除node_modules,但仍然是同样的问题

podfile

require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, '12.0'

target 'App' do

rn_maps_path = '../node_modules/react-native-maps'
pod 'react-native-google-maps', :path => rn_maps_path
  config = use_native_modules!

  use_react_native!(:path => config["reactNativePath"])

  pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'

  pod 'RNSVG', :path => '../node_modules/react-native-svg'

  pod 'react-native-fbsdk', :path => '../node_modules/react-native-fbsdk'

  pod 'RNGestureHandler', :path => '../node_modules/react-native-gesture-handler'

  pod 'RNReanimated', :path => '../node_modules/react-native-reanimated'

  pod 'react-native-viewpager', :path => '../node_modules/@react-native-community/viewpager'

  pod 'RNSound', :path => '../node_modules/react-native-sound'

  pod 'ReactNativeGetLocation', :path => '../node_modules/react-native-get-location'
  pod 'react-native-camera', path: '../node_modules/react-native-camera', subspecs: [
    'BarcodeDetectorMLKit'
  ]

  target 'AppTests' do
    inherit! :complete
    # Pods for testing
  end

  # Enables Flipper.
  #
  # Note that if you have use_frameworks! enabled, Flipper will not work and
  # you should disable these next few lines.
  use_flipper!({'Flipper' => '0.87.0' , 'Flipper-Folly' => '2.5.3' , 'Flipper-RSocket' => '1.3.1' })
  post_install do |installer|
    flipper_post_install(installer)
  end
end

我得到的错误:

In Podfile:
    RNFBAuth (from `../node_modules/@react-native-firebase/auth`) was resolved to 16.5.0, which depends on
      Firebase/Auth (= 10.3.0) was resolved to 10.3.0, which depends on
        FirebaseAuth (~> 10.3.0) was resolved to 10.3.0, which depends on
          GTMSessionFetcher/Core (< 4.0, >= 2.1)

    RNGoogleSignin (from `../node_modules/@react-native-community/google-signin`) was resolved to 4.0.3, which depends on
      GoogleSignIn (~> 5.0.0) was resolved to 5.0.2, which depends on
        GTMAppAuth (~> 1.0) was resolved to 1.3.1, which depends on
          GTMSessionFetcher/Core (< 3.0, >= 1.5)

    RNGoogleSignin (from `../node_modules/@react-native-community/google-signin`) was resolved to 4.0.3, which depends on
      GoogleSignIn (~> 5.0.0) was resolved to 5.0.2, which depends on
        GTMSessionFetcher/Core (~> 1.1)

CocoaPods could not find compatible versions for pod "GoogleMaps":
  In Podfile:
    react-native-google-maps (from `../node_modules/react-native-maps`) was resolved to 0.28.0, which depends on
      Google-Maps-iOS-Utils (= 2.1.0) was resolved to 2.1.0, which depends on
        GoogleMaps

    react-native-google-maps (from `../node_modules/react-native-maps`) was resolved to 0.28.0, which depends on
      GoogleMaps (= 3.5.0) ```
0md85ypi

0md85ypi1#

试图理解,这可能发生在你更新谷歌 matplotlib 之后。因此,您已经在本地安装了Pod,但它与Podfile要求的那个不兼容。也许pod update可以解决这个问题。你也可以得到一个错误,pod install --repo-update可能会解决它。然后再做pod update

相关问题