Error

Error (Xcode): 'Flutter/Flutter.h' file not found /Users/dandan/flutter_projects/myapp/ios/Runner/GeneratedPluginRegistrant.h:9:8

Solution

First backup your ios folder and delete the ios folder. After that, run the following commands: flutter create -i objc . // This is to rebuild the ios folder. flutter pub get cd ios pod init pod install flutter run