hnvn / flutter_image_cropper

A Flutter plugin for Android and iOS supports cropping images
994 stars 392 forks source link

Image Cropper Conflict with TOCropViewController error #497

Open Premtejareddy11 opened 3 months ago

Premtejareddy11 commented 3 months ago
  CDN: trunk Relative path: Specs/4/2/c/FlutterMacOS/3.16.0/FlutterMacOS.podspec.json exists! Returning local because
  checking is only performed in repo update
[!] CocoaPods could not find compatible versions for pod "TOCropViewController":
  In snapshot (Podfile.lock):
    TOCropViewController (= 2.6.1, ~> 2.6.1)

  In Podfile:
    image_cropper (from `.symlinks/plugins/image_cropper/ios`) was resolved to 0.0.4, which depends on
      TOCropViewController (~> 2.7.4)

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 `TOCropViewController` inside your development pod `image_cropper`.
   You should run `pod update TOCropViewController` to apply changes you've made.
hnvn commented 3 months ago

try to use following commands:

cd ios
pod deintegrate
rm -rf Podfile.lock
pod install --repo-update