【发布时间】:2023-02-01 17:34:12
【问题描述】:
出于某种原因,我在发出 Flutter run 命令时开始收到此消息,我不确定后台是否有更新。
Semantic Issue (Xcode): Property 'userInfo' not found on object of type 'UNNotification *'
/Users/martyn/FlutterDev/flutter/.pubcache/hosted/pub.dartlang.org/flutter_local_notifications-9.4.0/ios/Classes/FlutterLocalNotificationsPlugin.m:156:36
Semantic Issue (Xcode): Array subscript is not an integer
/Users/martyn/FlutterDev/flutter/.pubcache/hosted/pub.dartlang.org/flutter_local_notificztions-9.4.0/ios/Classes/FlutterLocalNotificationsPlugin.m:156:44
我也从
/Users/martyn/FlutterDev/flutter/.pubcache/hosted/pub.dartlang.org/flutter_local_notifications-9.4.0/ios/Classes/FlutterLocalNotificationsPlugin.m:335:4:
warning: 'UILocalNotification' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications
Framework's UNNotificationRequest [-Wdeprecated-declarations]
- (UILocalNotification *)buildStandardUILocalNotification:
我不知道如何解决它。 谢谢
【问题讨论】:
-
您需要 edit 您的问题以 minimal reproducible example 的形式包含所有相关代码,以便使问题切题。