Xcode installed

An existing Flutter project

To set up flavors in iOS, you’ll define build configurations in Xcode.

Creating flavors in iOS

Open your project in Xcode.

Select Runner > New Scheme from the menu to add a new Scheme.
    
      A scheme describes how Xcode runs different actions. 
For the purposes of this guide, the example flavor and scheme are 
named free. 
The build configurations in the free scheme 
have the -free suffix.

Duplicate the build configurations to differentiate between the 
default configurations that are already available and the new configurations 
for the free scheme.
    
      Under the Info tab at the end of the 
Configurations dropdown list, click the plus button and duplicate 
each configuration name (Debug, Release, and Profile). 
Duplicate the existing configurations, once for each environment.