Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
/Users/ChenZheng/Desktop/test-flutter/hello_flutter/ios/Runner/AppDelegate.swift:8:65: error: 'LaunchOptionsKey' is not a member type of
'UIApplication'
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
~~~~~~~~~~~~~ ^
Could not build the application for the simulator.
Error launching application on iPhone X.