text
stringlengths
1
372
an IPA of your app and an ExportOptions.plist file.
you can create new IPAs with the same options without launching
xcode by running
flutter build ipa --export-options-plist=path/to/exportoptions.plist.
see xcodebuild -h for details about the keys in this property list.
you can follow the status of your build in the
activities tab of your app’s details page on
app store connect.
you should receive an email within 30 minutes notifying you that
your build has been validated and is available to release to testers
on TestFlight. at this point you can choose whether to release
on TestFlight, or go ahead and release your app to the app store.
for more details, see
upload an app to app store connect.
<topic_end>
<topic_start>
create a build archive with codemagic CLI tools
this step covers creating a build archive and uploading
your build to app store connect using flutter build commands
and codemagic CLI tools executed in a terminal
in the flutter project directory. this allows you to create a build archive
with full control of distribution certificates in a temporary keychain
isolated from your login keychain.
install the codemagic CLI tools:
you’ll need to generate an app store connect API key
with app manager access to automate operations with app store connect. to make
subsequent commands more concise, set the following environment variables from
the new key: issuer id, key id, and API key file.
you need to export or create an iOS distribution certificate to code sign and package a build archive.
if you have existing certificates, you can export the
private keys by executing the following command for each certificate:
or you can create a new private key by executing the following command:
later, you can have CLI tools automatically create a new iOS distribution from the private key.
set up a new temporary keychain to be used for code signing:
restore login keychain!
after running keychain initialize you must run the following:
keychain use-login
this sets your login keychain as the default to avoid potential
authentication issues with apps on your machine.
fetch the code signing files from app store connect:
where cert_key is either your exported iOS distribution certificate private key
or a new private key which automatically generates a new certificate. the certificate
will be created from the private key if it doesn’t exist in app store connect.
now add the fetched certificates to your keychain:
update the xcode project settings to use fetched code signing profiles:
install flutter dependencies:
install CocoaPods dependencies:
build the flutter the iOS project:
note that export_options.plist is the output of the xcode-project use-profiles command.
publish the app to app store connect:
as mentioned earlier, don’t forget to set your login keychain
as the default to avoid authentication issues
with apps on your machine:
you should receive an email within 30 minutes notifying you that
your build has been validated and is available to release to testers
on TestFlight. at this point you can choose whether to release
on TestFlight, or go ahead and release your app to the app store.
<topic_end>
<topic_start>
release your app on TestFlight
TestFlight allows developers to push their apps
to internal and external testers. this optional step
covers releasing your build on TestFlight.
for more details, see distribute an app using TestFlight.
<topic_end>
<topic_start>
release your app to the app store
when you’re ready to release your app to the world,
follow these steps to submit your app for review and
release to the app store:
apple notifies you when their app review process is complete.
your app is released according to the instructions you
specified in the version release section.
for more details, see
distribute an app through the app store.
<topic_end>
<topic_start>
troubleshooting
the distribute your app guide provides a
detailed overview of the process of releasing an app to the app store.
<topic_end>
<topic_start>
build and release a macOS app
this guide provides a step-by-step walkthrough of releasing a
flutter app to the app store.
<topic_end>
<topic_start>
preliminaries
before beginning the process of releasing your app,
ensure that it meets
apple’s app review guidelines.
in order to publish your app to the app store,
you must first enroll in the
apple developer program.
you can read more about the various
membership options in apple’s
choosing a membership guide.
<topic_end>
<topic_start>
register your app on app store connect