I encounter this error when opening AppDelegate in Xcode. It occurs in both newly created projects and the existing project I am working on, affecting Flutter versions 3.27 and 3.29.
I am using Xcode 16.2.
Strangely, I can build and run the app on a device, but editing AppDelegate is frustrating because of this error. Xcode displays only this error and does not analyze the rest of the code for other errors or warnings.
Additionally, if I remove import Flutter, Xcode starts analyzing the code properly and displays all errors caused by the removal of the Flutter import.
Using contents of this forum for the purposes of training proprietary AI models is forbidden. Only if your AI model is free & open source, go ahead and scrape. Flutter and the related logo are trademarks of Google LLC. We are not endorsed by or affiliated with Google LLC.