Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter macOS plugin

I'm making a Flutter plugin which must support macOS. However, when I want to create a plugin and run the plugin in the example app (even when I haven't edited the by Flutter generated code), Xcode throws the following error.

Unable to load contents of the file list: '/Users/admin/../example/macos/ephemeral/FlutterInputs.xcfilelist'

Unable to load contents of the file list: '/Users/admin/../example/macos/ephemeral/FlutterOutputs.xcfilelist'

Xcode error screenshot

This is my Flutter doctor:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel dev, 1.21.0-9.0.pre, on Mac OS X 10.15.3 19D76, locale
    nl-NL)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
[✓] Chrome - develop for the web
[✓] Android Studio (version 3.5)
[✓] VS Code (version 1.48.0)
[✓] Connected device (3 available)

• No issues found!
like image 295
Gijs Withagen Avatar asked Aug 24 '26 16:08

Gijs Withagen


1 Answers

I found another solution: Run the flutter build command flutter build macos before build in Xcode, then these input/out files appears.

  • FlutterInputs.xcfilelist
  • FlutterOutputs.xcfilelist
like image 96
Fourj Avatar answered Aug 26 '26 22:08

Fourj