pod install 百度地图依赖报错的解决方案

pod install
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "BaiduMapKit/Utils":
  In snapshot (Podfile.lock):
    BaiduMapKit/Utils (= 6.0.0)

  In Podfile:
    flutter_baidu_mapapi_base (from `.symlinks/plugins/flutter_baidu_mapapi_base/ios`) was resolved to 2.0.0, which depends on
      BaiduMapKit/Utils (= 6.2.0)


You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * changed the constraints of dependency `BaiduMapKit/Utils` inside your development pod `flutter_baidu_mapapi_base`.
   You should run `pod update BaiduMapKit/Utils` to apply changes you've made.

解决方案: 删除 Podfile.lock 后重新运行 pod install 即可.

posted @ 2022-04-24 20:05  beansoft  阅读(1098)  评论(0编辑  收藏  举报