Open In App

How to Install Flutter in Xcode?

Last Updated : 06 Dec, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

Flutter is open-source software. It is used to create cross-platform software from a single codebase for platforms like Android, iOS, Linux, macOS, Windows, Google Fuchsia, and the web. The integrated development environment (IDE) used by Apple to create software for macOS, iOS, iPad, watchOS, and tvOS is called Xcode. It was first made available in late 2003; Everything you require to create, test, and release apps for all Apple platforms are included in Xcode.

Use a new multiplatform app experience that takes advantage of Swift and SwiftUI’s power and simplicity, develop more quickly with improved editor tools, and start testing and deploying amazing apps that have never been simpler to make. Lighter. Faster. With a binary that is 30% smaller than before, Xcode enables you to get going more quickly than ever. With the addition of watchOS and tvOS simulator runtimes for download, Xcode now makes the most recent platforms available as you require them.

Follow the further steps to install flutter in Xcode

Step 1: Download the Flutter SDK.

To obtain the most recent stable version of the Flutter SDK, download the following installation package:

https://storage.googleapis.com/flutter_infra_release/releases/stable/macos/flutter_macos_arm64_3.3.8-stable.zip

Step 2: Unzip the file where you’d like, for instance:

unzip the flutter file

 

Step 3: Add the flutter tool to your path:

Flutter tool

 

Step 4: Run flutter, doctor

To get verbose output, add the -v command. Run the following command to determine if there are any dependencies you need to install to finish the setup.

Run the flutter doctor

 

Step 5: Correct your path.

As demonstrated in Get the Flutter SDK, you may modify your PATH variable for the current session at the command line. Add the next line, changing to the location of your Flutter git clone.

Flutter git clone

 

Step 6: Run the following command to check that the flutter/bin directory is now in your PATH:

Echo path

 

Step 7: Run this command to see if the flutter command is available.

Run the flutter

 

Step 8: Setup Xcode

You need an Apple Mac with Xcode installed in order to create Flutter apps for iOS.
Install Xcode’s most recent stable version. Run the following commands from the command line to set up the Xcode command-line tools to use the newly installed version of Xcode:

Flutter Installation

 

Now the flutter is successfully installed in Xcode

Flutter is running in MAC

 


Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads