【问题标题】:React-native iOS : Cocoapods could not find compatible version for pod "Firebase/CoreOnly","Google-Maps-iOS-Utils" & "GoogleMaps"React-native iOS:Cocoapods 找不到 pod“Firebase/CoreOnly”、“Google-Maps-iOS-Utils”和“GoogleMaps”的兼容版本
【发布时间】:2021-01-07 15:16:24
【问题描述】:

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

[!] CocoaPods 找不到 pod 的兼容版本 “Firebase/CoreOnly”:在 Podfile 中: RNFBApp(来自../node_modules/@react-native-firebase/app)被解析为8.4.3,这取决于 Firebase/CoreOnly (~> 6.30.0)

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

7.8.2,这取决于 Firebase/Firestore (~> 6.30.0) 被解析为 6.30.0,这取决于 Firebase/CoreOnly (= 6.30.0)

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

到 6.7.1,这取决于 Firebase/Core (~> 6.13.0) 被解析为 6.13.0,这取决于 Firebase/CoreOnly (= 6.13.0)

CocoaPods 找不到 pod 的兼容版本 “Google-Maps-iOS-Utils”:在 Podfile 中: Google-Maps-iOS-Utils

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

取决于 Google-Maps-iOS-Utils (= 2.1.0)

CocoaPods 找不到 pod“GoogleMaps”的兼容版本:
在 Podfile 中: react-native-google-maps(来自../node_modules/react-native-maps)被解析为0.27.1,它 取决于 Google-Maps-iOS-Utils (= 2.1.0) 被解析为 2.1.0,这取决于 谷歌地图

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

取决于 谷歌地图 (= 3.5.0)

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

【问题讨论】:

    标签: ios firebase react-native google-maps cocoapods


    【解决方案1】:

    如果您确定已正确安装所有内容并且 pod repo update 仍然无法正常工作,请删除您的 Podfile.lock 然后再次执行“pod install”。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-09-27
      • 2021-03-19
      • 2019-01-17
      • 2022-10-25
      • 2022-12-16
      • 2022-12-19
      • 2019-09-28
      • 2022-08-09
      相关资源
      最近更新 更多