【发布时间】:2021-07-11 05:48:48
【问题描述】:
我在运行 Flutter 应用时遇到了一些与位置设置相关的错误。
错误 1:
/Users/mustafazaki/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/location-3.2.4/ios/Classes/LocationPlugin.m:84:43: 注意:将“allowsBackgroundLocationUpdates”包含在@available 检查中 让这个警告静音 结果(self.clLocationManager.allowsBackgroundLocationUpdates?@1: @0);
错误 2:
/Users/mustafazaki/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/location-3.2.4/ios/Classes/LocationPlugin.m:91:36: 警告:“setAllowsBackgroundLocationUpdates:”仅适用于 iOS 9.0 或更新版本 [-Wunguarded-availability] self.clLocationManager.allowsBackgroundLocationUpdates = 启用;
错误 3:
/Users/mustafazaki/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/location-3.2.4/ios/Classes/LocationPlugin.m:92:36: 注意:将 'setShowsBackgroundLocationIndicator:' 包含在 @available 中 检查以使此警告静音 self.clLocationManager.showsBackgroundLocationIndicator = enable;
【问题讨论】: