gpt4 book ai didi

ios - React-native iOS : Cocoapods could not find compatible version for pod "Firebase/CoreOnly" ,"Google-Maps-iOS-Utils" & "GoogleMaps"

转载 作者:行者123 更新时间:2023-12-03 08:35:19 26 4
gpt4 key购买 nike

我在为我的react-native项目运行pod install时收到以下错误。我尝试运行 pod install --repo-updatepod repo update,但它对我不起作用。

[!] CocoaPods could not find compatible versions for pod"Firebase/CoreOnly": In Podfile:RNFBApp (from ../node_modules/@react-native-firebase/app) was resolved to 8.4.3, which depends onFirebase/CoreOnly (~> 6.30.0)

RNFBFirestore (from `../node_modules/@react-native-firebase/firestore`) was resolved to

7.8.2, which depends onFirebase/Firestore (~> 6.30.0) was resolved to 6.30.0, which depends onFirebase/CoreOnly (= 6.30.0)

RNFBRemoteConfig (from `../node_modules/@react-native-firebase/remote-config`) was resolved

to 6.7.1, which depends onFirebase/Core (~> 6.13.0) was resolved to 6.13.0, which depends onFirebase/CoreOnly (= 6.13.0)

CocoaPods could not find compatible versions for pod"Google-Maps-iOS-Utils": In Podfile:Google-Maps-iOS-Utils

react-native-google-maps (from `../node_modules/react-native-maps`) was resolved to 0.27.1, which

depends onGoogle-Maps-iOS-Utils (= 2.1.0)

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.27.1, whichdepends onGoogle-Maps-iOS-Utils (= 2.1.0) was resolved to 2.1.0, which depends onGoogleMaps

react-native-google-maps (from `../node_modules/react-native-maps`) was resolved to 0.27.1, which

depends onGoogleMaps (= 3.5.0)

谁能给出一个可能的解决方案来解决这个问题?

最佳答案

我是这样解决的:

  • 我检查了我的 node_modules/react-native-maps/react-native-google-maps.podspec,我有以下版本:
require 'json'

package = JSON.parse(File.read(File.join(__dir__, 'package.json')))

Pod::Spec.new do |s|
...
s.dependency 'GoogleMaps', '5.1.0'
s.dependency 'Google-Maps-iOS-Utils', '3.10.3'
...
  • 然后我更新了我的 Podfile,如下所示:
    rn_maps_path = '../node_modules/react-native-maps'
pod 'react-native-google-maps', :path => rn_maps_path
pod 'GoogleMaps', '5.1.0' # <<<<---- I added the '5.1.0' version here
pod 'Google-Maps-iOS-Utils', '3.10.3' # <<<<---- I added the '3.10.3' version here
  • 我运行 pod install 并收到此错误:[!] 目标平台inguru(iOS 10.0) 可能与以下不兼容 code>GoogleMaps (5.1.0) 最低要求为 iOS 11.0。
  • 我将 Podfile 上所需的最低构建版本更新为 11.0:
platform :ios, '10.0'
  • 我再次运行 pod install,一切正常。

关于ios - React-native iOS : Cocoapods could not find compatible version for pod "Firebase/CoreOnly" ,"Google-Maps-iOS-Utils" & "GoogleMaps",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63993760/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com