I got the following error:
/Users/flo/.pub-cache/hosted/pub.dartlang.org/image_picker-0.6.7+12/ios/Classes/FLTImagePickerPlugin.m:1
49:20: warning: 'UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated.
Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead
[-Wdeprecated-declarations]
[[[UIAlertView alloc] initWithTitle:@"Error"
I already try to do:
flutter pub cache repair
rm the .pub-cache/hosted/pub.dartlang.org directory
rm podfile.lock and Pods folder
But still the same issue. Any ideas ? I only find issues like this for Swift but not related to Flutter.
I allow myself to answer my question which may benefit others who have the same problem, here is a simple solution that worked for me. You don't have to repair/update the cache or edit the Podfile and remove the Pods folder.
flutter run
(you may have errors due to the missing package, ignore them)If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With