0

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

[!] CocoaPods 找不到 pod "Firebase/CoreOnly" 的兼容版本:在 Podfile 中:RNFBApp (from ../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

依赖于 Firebase/Firestore (~> 6.30.0) 的 7.8.2 被解析为依赖于 Firebase/CoreOnly (= 6.30.0) 的 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 (from ../node_modules/react-native-maps) 已解析为 0.27.1,这取决于 Google-Maps-iOS-Utils (= 2.1.0) 已解决到 2.1.0,这取决于 GoogleMaps

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

取决于 GoogleMaps (= 3.5.0)

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

4

1 回答 1

1

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

于 2020-10-14T10:45:40.477 回答