【问题标题】:Flutter Array subscript is not an integerFlutter Array 下标不是整数
【发布时间】: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:

我不知道如何解决它。 谢谢

【问题讨论】:

标签: ios swift flutter


【解决方案1】:

我通过运行 flutter pub cache repair 解决了这个问题

【讨论】:

    猜你喜欢
    • 2011-06-05
    • 2018-07-06
    • 1970-01-01
    • 2020-07-10
    • 1970-01-01
    • 1970-01-01
    • 2017-10-21
    • 1970-01-01
    相关资源
    最近更新 更多