Before setting up Fastlane, ensure you have:
flutter create .
if missing).brew install cocoapods
).brew install ruby
).Install Fastlane:
brew install fastlane
Open the terminal and navigate to your Flutter project’s ios
directory:
cd ios
Initialise Fastlane:
fastlane init
When prompted:
You will need to choose the type of functionality you want to choose.
1. Automate screenshots
2. Automate beta distribution to TestFlight
3. Automate App Store distribution
4. Manual setup
Choose option Automate beta distribution to TestFlight
.
Add Apple Id Username.(Here you can use your email
) and perform login.
Select the development team.
Add app identifier if not added on AppStore connect.
And Complete the process.
Appfile
and Fastfile
. And in iOS directory creates Gemfile
and Gemfile.lock
. Save this files to GitHub project repository.Here you will require a new GitHub private repository to store the apple id certificates.
Now execute this command.
fastlane match init
When prompted: