blackmann / locationpicker

Location picker for Flutter.
Other
167 stars 159 forks source link

Build crashes with Flutter 2.6 #62

Closed kbayegan closed 2 years ago

kbayegan commented 2 years ago

Here are the errors. They happen running only the example and noting else:

Failed to build iOS app Error output from Xcode build: ↳ BUILD FAILED

Xcode's output: ↳ 2 warnings generated. /Users/kamran/flutter/.pub-cache/hosted/pub.dartlang.org/location-2.5.4/ios/Classes/LocationPlugin.m:134:13: warning: 'UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead [-Wdeprecated-declarations] UIAlertView alert = [[UIAlertView alloc] initWithTitle:@"Location is Disabled" ^ In module 'UIKit' imported from /Users/kamran/Dropbox/Flutter/p_picker/ios/Pods/Target Support Files/location/location-prefix.pch:2: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h:27:12: note: 'UIAlertView' has been explicitly marked deprecated here @interface UIAlertView : UIView ^ /Users/kamran/flutter/.pub-cache/hosted/pub.dartlang.org/location-2.5.4/ios/Classes/LocationPlugin.m:134:48: warning: 'UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead [-Wdeprecated-declarations] UIAlertView alert = [[UIAlertView alloc] initWithTitle:@"Location is Disabled" ^ In module 'UIKit' imported from /Users/kamran/Dropbox/Flutter/p_picker/ios/Pods/Target Support Files/location/location-prefix.pch:2: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h:27:12: note: 'UIAlertView' has been explicitly marked deprecated here @interface UIAlertView : UIView ^ 2 warnings generated. ../../../flutter/.pub-cache/hosted/pub.dartlang.org/place_picker-0.9.18/lib/widgets/rich_suggestion.dart:35:89: Error: The getter 'body1' isn't defined for the class 'TextTheme'.

Could not build the application for the simulator. Error launching application on iPhone 11.

nikitabuida commented 2 years ago

Here's a temporary solution: https://github.com/blackmann/locationpicker/issues/57#issuecomment-916621500

blackmann commented 2 years ago

Fixed in #67