今天同事修改了部分代码,iOS重新构建时候遇到下面这个错误:
[!] CocoaPods could not find compatible versions for pod "JPush":
In snapshot (Podfile.lock):
JPush (= 4.4.0)
In Podfile:
jpush_flutter (from `.symlinks/plugins/jpush_flutter/ios`) was resolved to 0.0.2, which depends on
JPush (= 3.6.1)
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 `JPush` inside your development pod `jpush_flutter`.
这是因为Podfile.lock的版本与pubspec.yaml插件版本不同导致的!