Comment on page
Publish to App store
- A Paid Apple Developers account
- A valid provisioning profile
- App Development and Distribution certificates
Every iOS application is associated with a Bundle ID, a unique identifier registered with Apple. To register a Bundle ID for your app, follow these steps:
- Click + to create a new Bundle ID.
- Enter an app name, select Explicit App ID, and enter an ID.
- Select the services your app uses, then click Continue.
- On the next page, confirm the details and click Register to register your Bundle ID.
- On the App Store Connect landing page, click My Apps.
- Click + in the top-left corner of the My Apps page, then select New App.
- Fill in your app details in the form that appears. In the Platforms section, ensure that iOS is checked. Since Flutter does not currently support tvOS, leave that checkbox unchecked. Click Create.
- Navigate to the application details for your app and select App Information from the sidebar.
- In the General Information section, select the Bundle ID you registered in the preceding step.
Navigate to your target’s settings in Xcode:
- In Xcode, open
Runner.xcworkspacein your app’s
- To view your app’s settings, select the Runner project in the Xcode project navigator. Then, in the main view sidebar, select the Runner target.
- Select the General tab.
In the Identity section:
Display NameThe display name of your app.
Bundle IdentifierThe App ID you registered on App Store Connect.
In the Signing & Capabilities section:
Automatically manage signingWhether Xcode should automatically manage app signing and provisioning. This is set
trueby default, which should be sufficient for most apps. For more complex scenarios, see the Code Signing Guide.
TeamSelect the team associated with your registered Apple Developer account. If required, select Add Account…, then update this setting.
In the Build Settings section:
iOS Deployment TargetThe minimum iOS version that your app supports. Flutter supports iOS 9.0 and later. If your app or plugins include Objective-C or Swift code that makes use of APIs newer than iOS 9, update this setting to the highest required version.
The General tab of your project settings should resemble the following:
This step covers creating a build archive and uploading your build to App Store Connect.
During development, you’ve been building, debugging, and testing with debug builds. When you’re ready to ship your app to users on the App Store or TestFlight, you need to prepare a release build. At this point, you might consider obfuscating your Dart code to make it more difficult to reverse engineer. Obfuscating your code involves adding a couple flags to your build command.
In Xcode, configure the app version and build:
- 1.In Xcode, open
Runner.xcworkspacein your app’s
- 2.Select Runner in the Xcode project navigator, then select the Runner target in the settings view sidebar.
- 3.In the Identity section, update the Version to the user-facing version number you wish to publish.
- 4.In the Identity section, update the Build identifier to a unique build number used to track this build on App Store Connect. Each upload requires a unique build number.
Finally, create a build archive and upload it to App Store Connect:
flutter build ipato produce a build archive.Note: On versions of Flutter where
flutter build ipais unavailable, open Xcode and select Product > Archive. In the sidebar of the Xcode Organizer window, select your iOS app, then select the build archive you just produced.
- 3.Click the Validate App button. If any issues are reported, address them and produce another build. You can reuse the same build ID until you upload an archive.
- 4.After the archive has been successfully validated, click Distribute App. You can follow the status of your build in the Activities tab of your app’s details page on App Store Connect.Note: When you export your app at the end of Distribute App, Xcode will create a directory containing an IPA of your app and an
ExportOptions.plistfile. 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 -hfor details about the keys in this property list.
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.