-
Notifications
You must be signed in to change notification settings - Fork 30.2k
Flutter's target macOS is broken: no such module 'FlutterMacOS' #169557
Copy link
Copy link
Closed
Labels
in triagePresently being triaged by the triage teamPresently being triaged by the triage teamwaiting for customer responseThe Flutter team cannot make further progress on this issue until the original reporter respondsThe Flutter team cannot make further progress on this issue until the original reporter responds
Description
Steps to reproduce
- On a macOS Intel terminal, create a new project:
$ flutter create pijarolata_hervida
Confirm it ends successfully.
- Move into its directory and try to run it:
$ cd pijarolata_hervida
$ flutter run
Expected results
It builds the app on macOS and launches it.
Actual results
$ flutter run
Connected devices:
macOS (desktop) • macos • darwin-x64 • macOS 15.5 24F74 darwin-x64
No wireless devices were found.
[1]: macOS (macos)
Please choose one (or "q" to quit): 1
Launching lib/main.dart on macOS in debug mode...
Failed frontend command:
/opt/xcode/16.3/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -c /Users/zatanna/Development/pijarolata_hervida/macos/Runner/MainFlutterWindow.swift /Users/zatanna/Development/pijarolata_hervida/macos/Runner/AppDelegate.swift -primary-file /Users/zatanna/Development/pijarolata_hervida/macos/Flutter/GeneratedPluginRegistrant.swift /Users/zatanna/Development/pijarolata_hervida/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/DerivedSources/GeneratedAssetSymbols.swift -emit-dependencies-path /Users/zatanna/Development/pijarolata_hervida/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/Objects-normal/x86_64/GeneratedPluginRegistrant.d -emit-const-values-path /Users/zatanna/Development/pijarolata_hervida/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/Objects-normal/x86_64/GeneratedPluginRegistrant.swiftconstvalues -emit-reference-dependencies-path /Users/zatanna/Development/pijarolata_hervida/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/Objects-normal/x86_64/GeneratedPluginRegistrant.swiftdeps -serialize-diagnostics-path /Users/zatanna/Development/pijarolata_hervida/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/Objects-normal/x86_64/GeneratedPluginRegistrant.dia -target x86_64-apple-macos10.14 -enable-objc-interop -sdk /opt/xcode/16.3/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk -I /Users/zatanna/Development/pijarolata_hervida/build/macos/Build/Products/Debug -F /Users/zatanna/Development/pijarolata_hervida/build/macos/Build/Products/Debug -no-color-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -module-cache-path /Users/zatanna/Development/pijarolata_hervida/build/macos/ModuleCache.noindex -swift-version 5 -enforce-exclusivity\=checked -Onone -D DEBUG -serialize-debugging-options -const-gather-protocols-file /Users/zatanna/Development/pijarolata_hervida/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/Objects-normal/x86_64/Runner_const_extract_protocols.json -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/zatanna/Development/pijarolata_hervida/build/macos/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/zatanna/Development/pijarolata_hervida/macos -resource-dir /opt/xcode/16.3/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -file-compilation-dir /Users/zatanna/Development/pijarolata_hervida/macos -Xcc -ivfsstatcache -Xcc /Users/zatanna/Development/pijarolata_hervida/build/macos/SDKStatCaches.noindex/macosx15.4-24E241-7a3cbc9e111fa6e1d7263766a9fa98d8.sdkstatcache -Xcc -I/Users/zatanna/Development/pijarolata_hervida/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/zatanna/Development/pijarolata_hervida/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/pijarolata_hervida-generated-files.hmap -Xcc -I/Users/zatanna/Development/pijarolata_hervida/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/pijarolata_hervida-own-target-headers.hmap -Xcc -I/Users/zatanna/Development/pijarolata_hervida/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/pijarolata_hervida-all-target-headers.hmap -Xcc -iquote -Xcc /Users/zatanna/Development/pijarolata_hervida/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/pijarolata_hervida-project-headers.hmap -Xcc -I/Users/zatanna/Development/pijarolata_hervida/build/macos/Build/Products/Debug/include -Xcc -I/Users/zatanna/Development/pijarolata_hervida/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/DerivedSources-normal/x86_64 -Xcc -I/Users/zatanna/Development/pijarolata_hervida/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/DerivedSources/x86_64 -Xcc -I/Users/zatanna/Development/pijarolata_hervida/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/DerivedSources -Xcc -DDEBUG\=1 -module-name pijarolata_hervida -frontend-parseable-output -disable-clang-spi -target-sdk-version 15.4 -target-sdk-name macosx15.4 -external-plugin-path /opt/xcode/16.3/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins\#/opt/xcode/16.3/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -external-plugin-path /opt/xcode/16.3/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/local/lib/swift/host/plugins\#/opt/xcode/16.3/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -in-process-plugin-server-path /opt/xcode/16.3/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftInProcPluginServer.dylib -plugin-path /opt/xcode/16.3/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins -plugin-path /opt/xcode/16.3/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/lib/swift/host/plugins -o /Users/zatanna/Development/pijarolata_hervida/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/Objects-normal/x86_64/GeneratedPluginRegistrant.o -index-unit-output-path /Runner.build/Debug/Runner.build/Objects-normal/x86_64/GeneratedPluginRegistrant.o
/Users/zatanna/Development/pijarolata_hervida/macos/Runner/MainFlutterWindow.swift:2:8: error: no such module 'FlutterMacOS'
import FlutterMacOS
^
warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Flutter Assemble' from project 'Runner')
** BUILD FAILED **
Building macOS application...
Error: Build process failed
Code sample
N/A
Screenshots or Video
N/A
Logs
N/A
Flutter Doctor output
Doctor output
flutter doctor --verbose
[✓] Flutter (Channel stable, 3.32.0, on macOS 15.5 24F74 darwin-x64, locale en-US) [924ms]
• Flutter version 3.32.0 on channel stable at /opt/flutter/3.32.0/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision be698c48a6 (8 days ago), 2025-05-19 12:59:14 -0700
• Engine revision 1881800949
• Dart version 3.8.0
• DevTools version 2.45.1
[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0) [3.4s]
• Android SDK at /opt/android-clt/13114758
• Platform android-36, build-tools 36.0.0
• Java binary at: /opt/android-studio/2024.3.2.14/Android Studio.app/Contents/jbr/Contents/Home/bin/java
This is the JDK bundled with the latest Android Studio installation on this machine.
To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
• Java version OpenJDK Runtime Environment (build 21.0.6+-13368085-b895.109)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 16.3) [2.9s]
• Xcode at /opt/xcode/16.3/Xcode.app/Contents/Developer
• Build 16E140
• CocoaPods version 1.16.2
[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google
Chrome) [23ms]
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Android Studio (version 2024.3) [22ms]
• Android Studio at /opt/android-studio/2024.3.2.14/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• android-studio-dir = /opt/android-studio/2024.3.2.14/Android Studio.app
• Java version OpenJDK Runtime Environment (build 21.0.6+-13368085-b895.109)
[✓] Connected device (1 available) [6.4s]
• macOS (desktop) • macos • darwin-x64 • macOS 15.5 24F74 darwin-x64
[✓] Network resources [599ms]
• All expected network resources are available.
! Doctor found issues in 1 category.Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
in triagePresently being triaged by the triage teamPresently being triaged by the triage teamwaiting for customer responseThe Flutter team cannot make further progress on this issue until the original reporter respondsThe Flutter team cannot make further progress on this issue until the original reporter responds