flutter / flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond
https://flutter.dev
BSD 3-Clause "New" or "Revised" License
166.25k stars 27.5k forks source link

On iOS running an app logs `[SceneConfiguration] Info.plist contained no UIScene configuration dictionary (looking for configuration named "(no name)")` #125921

Open jmagman opened 1 year ago

jmagman commented 1 year ago

Running on iOS 16.2 and higher logs:

Runner[406:6604] [SceneConfiguration] Info.plist contained no UIScene configuration dictionary (looking for configuration named "(no name)")

See in CI as well: https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8782173984577042033/+/u/run_microbenchmarks_ios/test_stdout

This forum thread https://developer.apple.com/forums/thread/721912 suggests it wants a UIApplicationSceneManifest addition to the Info.plist. That creates a UISceneConfigurations dictionary that seems safe to leave blank? But it also adds a UIApplicationSupportsMultipleScenes property and I don't know (doubt) if it's totally safe to default set that to YES...

Whatever the right thing to add here we can include in the flutter create template. I don't know if it's safe/desirable to migrate.

hellohuanlin commented 1 year ago

Whatever the right thing to add here we can include in the flutter create template.

If i understand it right, we are still using app delegate and not the new "scene delegate". Maybe this only applies to our test project on CI, and not flutter apps out there.