Description
Building the Flutter macOS application fails during compilation. The error indicates that the FlutterMacOS module cannot be found by multiple plugins during the CocoaPods/Xcode build process.
Environment
- Flutter: 3.35.7 (stable)
- Dart SDK: ^3.6.0
- macOS: 15.6.1 (darwin-x64)
- Xcode: 26.1
- Android SDK: 36.1.0
- IDE: Android Studio 2025.2, VS Code 1.107.0
flutter doctor reports no issues.
Project Details
Steps to Reproduce
- Run
flutter pub get
- Run
flutter run -d macos
- Build starts and fails during macOS compilation
Actual Result
The macOS build fails with multiple errors stating that the FlutterMacOS module and headers cannot be found.
Expected Result
The macOS application should build successfully.
Error Logs
error: Module 'FlutterMacOS' not found
error: 'FlutterMacOS/FlutterMacOS.h' file not found
error: Unable to find module dependency: 'FlutterMacOS'
Full Error Output (excerpt)
/video_player_avfoundation/.../FVPViewProvider.h:7:9: error: Module 'FlutterMacOS' not found
/video_player_avfoundation/.../FVPVideoPlayerPlugin.h:6:9: error: 'FlutterMacOS/FlutterMacOS.h' file not found
/window_manager/.../WindowManager.swift:2:8: error: Unable to find module dependency: 'FlutterMacOS'
import FlutterMacOS
Build terminates with:
** BUILD FAILED **
Error: Build process failed
Description
Building the Flutter macOS application fails during compilation. The error indicates that the
FlutterMacOSmodule cannot be found by multiple plugins during the CocoaPods/Xcode build process.Environment
flutter doctorreports no issues.Project Details
Project name:
stream_g1Platform: macOS
Build mode: Debug
Plugins involved (partial list):
video_playervideo_player_avfoundationwindow_managerSteps to Reproduce
flutter pub getflutter run -d macosActual Result
The macOS build fails with multiple errors stating that the
FlutterMacOSmodule and headers cannot be found.Expected Result
The macOS application should build successfully.
Error Logs
Full Error Output (excerpt)
Build terminates with: