【发布时间】:2019-09-29 18:37:22
【问题描述】:
我正在尝试在 Mac (macOS Sierra) 上设置颤振。我正在尝试按照安装说明运行一个测试应用程序,但出现如下错误
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
/Users/apple/work/flutter/my_app/ios/Runner/AppDelegate.swift:8:65: error:
** **
'LaunchOptionsKey' is not a member type of 'UIApplication'
didFinishLaunchingWithOptions launchOptions:
[UIApplication.LaunchOptionsKey: Any]?
Flutter 医生总结:
$flutter doctor
医生总结(要查看所有详细信息,请运行 flutter doctor -v):
[✓] Flutter (Channel stable, v1.9.1+hotfix.2, on Mac OS X 10.12.6 16G1510,
locale en-IN)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 9.2)
[✓] Android Studio (version 3.5)
【问题讨论】:
-
你有什么版本的 Xcode?如果是旧版本,您是否尝试过升级到最新版本?
-
我将 UIApplication.LaunchOptionsKey 更改为 UIApplicationLaunchOptionsKey 和它的工作,但仍然想知道为什么这会自动发生颤振。
-
将 UIApplication.LaunchOptionsKey 更改为 UIApplicationLaunchOptionsKey 似乎是目前唯一的选择。在未来的版本中,它可能会得到解决。
标签: flutter flutter-dependencies