Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS desktop as a target broken due to missing FlutterMacOS #11516

Open
1 task
diegum opened this issue Dec 18, 2024 · 1 comment
Open
1 task

macOS desktop as a target broken due to missing FlutterMacOS #11516

diegum opened this issue Dec 18, 2024 · 1 comment
Labels
e1-hours Effort: < 8 hrs from.page-issue Reported in a reader-filed concern p1-high Major but not urgent concern: Resolve in months. Update each month.

Comments

@diegum
Copy link

diegum commented Dec 18, 2024

Page URL

https://docs.flutter.dev/platform-integration/macos/building/

Page source

https://github.com/flutter/website/tree/main/src/content/platform-integration/macos/building.md

Describe the problem

I follow the instructions as listed but the following command throws an error:

$  flutter build macos

/Users/zatanna/Development/socas/macos/Runner/MainFlutterWindow.swift:2:8: error: no such module 'FlutterMacOS'
import FlutterMacOS
       ^
** BUILD FAILED **

Building macOS application...                                           
Build process failed

My flutter doctor:

$ flutter doctor -v
[✓] Flutter (Channel stable, 3.27.1, on macOS 15.2 24C101 darwin-x64, locale en-US)
    • Flutter version 3.27.1 on channel stable at /opt/flutter/3.27.1/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 17025dd882 (35 hours ago), 2024-12-17 03:23:09 +0900
    • Engine revision cb4b5fff73
    • Dart version 3.6.0
    • DevTools version 2.40.2

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /opt/android-clt/11076708
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /opt/android-studio/2024.2.1.12/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 21.0.3+-79915915-b509.11)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
    • Xcode at /opt/xcode/16.2/Xcode.app/Contents/Developer
    • Build 16C5032a
    • CocoaPods version 1.16.2

[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google
    Chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Android Studio (version 2024.2)
    • Android Studio at /opt/android-studio/2024.2.1.12/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.2.1.12/Android Studio.app
    • Java version OpenJDK Runtime Environment (build 21.0.3+-79915915-b509.11)

[✓] Connected device (1 available)
    • macOS (desktop) • macos • darwin-x64 • macOS 15.2 24C101 darwin-x64

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

Expected fix

It seems that the Flutter SDK got some regression regarding macos desktop as a target. It stopped including FlutterMacOS in the project.

Additional context

No response

I would like to fix this problem.

  • I will try and fix this problem on docs.flutter.dev.
@diegum diegum added the from.page-issue Reported in a reader-filed concern label Dec 18, 2024
@sfshaza2 sfshaza2 added p1-high Major but not urgent concern: Resolve in months. Update each month. e1-hours Effort: < 8 hrs labels Dec 18, 2024
@sfshaza2
Copy link
Contributor

@parlough, can you take a look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e1-hours Effort: < 8 hrs from.page-issue Reported in a reader-filed concern p1-high Major but not urgent concern: Resolve in months. Update each month.
Projects
None yet
Development

No branches or pull requests

2 participants