flutterlocation
flutterlocation copied to clipboard
iOS Build fails: 'UIAlertView' is deprecated
[✓] Flutter (Channel stable, 1.22.5, on macOS 11.2 20D64 darwin-x64, locale en-US) [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2) [✓] Xcode - develop for iOS and macOS (Xcode 12.4) [✓] Android Studio (version 3.5) [✓] VS Code (version 1.53.1)
location-3.2.4/ios/Classes/LocationPlugin.m:163: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"
https://stackoverflow.com/questions/34642853/uialertview-is-deprecated-first-deprecated-in-ios-9-0
More extensive error message:
1 warning generated.
/Users/ek/dev/flutter/.pub-cache/hosted/pub.dartlang.org/location-4.0.2/ios/Classes/LocationPlugin.m:163: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/ek/AndroidStudioProjects/run_vmc/ios/Pods/Target Support Files/location/location-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h:27:12: note: 'UIAlertView' has been explicitly marked deprecated here
@interface UIAlertView : UIView
^
/Users/ek/dev/flutter/.pub-cache/hosted/pub.dartlang.org/location-4.0.2/ios/Classes/LocationPlugin.m:163: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/ek/AndroidStudioProjects/run_vmc/ios/Pods/Target Support Files/location/location-prefix.pch:2:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h:27:12: note: 'UIAlertView' has been explicitly marked deprecated here
@interface UIAlertView : UIView
^
I'm seeing the same issue. Did you find a workaround @Velek?
No. I'm more interested in Android and iOS.
On May 29, 2021 3:28:01 AM PDT, Fabio Serragnoli @.***> wrote:
I'm seeing the same issue. Did you find a workaround @Velek?
-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/Lyokone/flutterlocation/issues/505#issuecomment-850810424
-- Sent from my Android device with K-9 Mail. Please excuse my brevity.
no solution or update for this one??? app doesn't build. i am stuck
Anyone solve this? I am also stuck on this, same past 15days with no resolution.
Same issue here
same here
Same issue
I was stuck on this issue, when I had my app targeting iOS 13.0. Workaround was to step down to iOS 9.0 in both, the Runner app and ios/Flutter/AppFrameworkInfo.plist
Same issue.
location version - 4.3.0
location-4.3.0/ios/Classes/LocationPlugin.m:176: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"
Mine works after I commented out wherever there is location: ^4.3.0 (or which ever) and ensured it is setup as location: ^4.3.0, not as follows: location: path: ../
Output results: Running "flutter pub get" in lessimp... Launching lib/main.dart on LM Q610 FGN in debug mode... Running Gradle task 'assembleDebug'... ✓ Built build/app/outputs/flutter-apk/app-debug.apk. D/FlutterLocationService(25199): Creating service. D/FlutterLocationService(25199): Binding to location service. Debug service listening on ws://127.0.0.1:55018/9v4R7eMaKJ8=/ws Syncing files to device LM Q610 FGN... [GETX] Instance "GetMaterialController" has been created [GETX] Instance "GetMaterialController" has been initialized I/flutter (25199): --none-- pushing / I/flutter (25199): --authCubit-- started listenning to auth changes I/flutter (25199): initing : Size(411.4, 822.9) I/flutter (25199): --authCubit-- new user state in userState listenner I/flutter (25199): --authCubit-- user sate changed to null I/flutter (25199): --none-- pushing /login [GETX] REPLACE ROUTE null [GETX] NEW ROUTE null I/flutter (25199): initng login page I/Timeline(25199): Timeline: Activity_idle id: android.os.BinderProxy@6f0109 time:60740330 I/TRuntime.CctTransportBackend(25199): Making request to: https://firebaselogging.googleapis.com/v0cc/log/batch?format=json_proto3 D/NetworkSecurityConfig(25199): No Network Security Config specified, using platform default I/TRuntime.CctTransportBackend(25199): Status Code: 200
Hey, I've updated the lib. Please try the latest 5.0.0-dev7
I get: Because X depends on location 5.0.0-dev7 which doesn't match any versions, version solving failed. pub get failed (1; Because X depends on location 5.0.0-dev7 which doesn't match any versions, version solving failed.)