The current behavior is Flutter crashing on an assertion.
-(void)viewDidAppear:(BOOL)animated {
FlutterEngine* engine = [[FlutterEngine alloc] initWithName:@"" project:nil];
// When the following `run` call is missing erroneously, Flutter just crashes in an assert.
// We should provide better feedback.
// [engine run];
FlutterViewController* viewController = [[FlutterViewController alloc] initWithEngine:engine nibName:nil bundle:nil];
[self presentViewController:viewController animated:NO completion:nil];
[super viewDidAppear:animated];
}
The current behavior is Flutter crashing on an assertion.