Just a day ago, Flutter, a new hybrid (mobile apps) development framework released by Google Inc.
I installed Flutter SDK, following steps, provided from this link: Install on macOS - iOS setup.
But unable create a new sample project in Xcode. I can't find proper way to start a new project using Xcode.
Here are steps to start a new sample project but not for Xcode: Get Started: Test Drive
How to create a new Flutter project in Xcode?
I'm using Xcode 9.3 - beta 3
There's no need to use XCode
You can just do a flutter create my_project_name
in the terminal
I think a better way is to create Flutter project by command line with iOS support:
In the terminal in a desired directory run command
flutter create -i swift -a kotlin your_gibrid_project_name
This util will create a project that you can run on iOS and on Android as well!
After you can develop it in IDE that suits for you
Full command for production can look like
flutter create --org com.yourcompany -i swift -a kotlin --description 'Your App Description' your_app_name
Params
--org com.yourcompany
will form applicationId for Android:
com.yourcompany.yourappname
and iOS PRODUCT_BUNDLE_IDENTIFIER:
com.yourcompany.yourAppName
parameter
--description 'Your App Description'
sets package description in our pubspec.yaml
To find all possible options run in the terminal command
flutter create --help
Yet, there is no way to create a project using Xcode Editor.
As of now, you must have to create a project using 'Terminal' app.
Here I created a sample test_project
using following terminal command
flutter create test_project
And here is my Xcode Project ready with workspace.

来源:https://stackoverflow.com/questions/49047411/flutter-how-to-create-a-new-project