Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Needed to update the dependency because I work on a project that uses google_mlkit_barcode_scanning and also mobile_scanner,
the problem was caused because they were using different versions of BarcodeScanning
https://github.com/flutter-ml/google_ml_kit_flutter/blob/develop/packages/google_mlkit_barcode_scanning/ios/google_mlkit_barcode_scanning.podspec#L18
https://github.com/juliansteenbakker/mobile_scanner/blob/master/ios/mobile_scanner.podspec#L18
And would return this error
[!] CocoaPods could not find compatible versions for pod "GoogleMLKit/BarcodeScanning":
In Podfile:
google_mlkit_barcode_scanning (from
.symlinks/plugins/google_mlkit_barcode_scanning/ios
) was resolved to 0.11.1, which depends onGoogleMLKit/BarcodeScanning (~> 5.0.0)
As this was the project that was lagging behind I decided to update and for me it worked