website
website copied to clipboard
Getting started instructions for using Xcode to build a macOS app
What information is missing?
I couldn't find instructions in https://docs.flutter.dev/get-started for using Xcode to build a macOS app.
I tried:
-
flutter create my_app
- Open
my_app/macos/Runner.xcworkspace
in Xcode. - Build.
It failed with:
error: Unable to load contents of file list: '[...]/my_app/macos/Flutter/ephemeral/FlutterInputs.xcfilelist' (in target 'Flutter Assemble' from project 'Runner')
error: Unable to load contents of file list: '[...]/my_app/macos/Flutter/ephemeral/FlutterOutputs.xcfilelist' (in target 'Flutter Assemble' from project 'Runner')
I got it working by using the flutter
command-line tool to build the project once before opening the workspace in Xcode. e.g.:
-
flutter create my_app
-
cd my_app
-
flutter build macos
- Open
my_app/macos/Runner.xcworkspace
in Xcode. - Build.
These steps, or the preferred equivalent, should be documented on docs.flutter.dev.
How would you like us to fix this problem?
Include a section on using Xcode to build a macOS app on https://docs.flutter.dev/get-started.