Build & Release for iOS
Last updated
Last updated
Make sure you have an active Apple Developer Account. https://developer.apple.com/
Before you can build and release your app on the App Store, you need to set up a place for it using App Store Connect. But first, you need to register a unique bundle ID for your app. This can be done by logging into your Apple Developer account and following these steps:
Open the App IDs page.
Click + to create a new Bundle ID.
Fill out the needed information: App Name, and Explicit App ID.
If your app needs specific services, select them and click Continue.
Review the details and click Register to finish.
Now that we have a unique bundle ID, it’s time to set up a place for your app on the App Store Connect. Log in to the App Store Connect.
Select My Apps.
Click + then select New App.
Fill in your app details and make sure iOS is selected, then click Create.
From the sidebar, select App Information.
In the General Information section, select the Bundle ID that you registered above.
Open the project that is inside your app’s iOS folder or right click on ios folder and click Open in Xcode.
From the Xcode project navigator, select the Runner project.
Then, select the Runner target in the main view sidebar.
Go to the General tab.
In the Identity section, fill out the information and make sure the Bundle Identifier is the one registered on App Store Connect.
In the Signing section, make sure Automatically manage signing is checked and select your team.
Fill out the rest of the information as needed.
Next, you’ll update your app’s icon. This can be done by selecting Assets.xcassets in the Runner folder from Xcode’s project navigator
From the command line, run flutter build ios
Then go back to Xcode and reopen Runner.xcworkspace
Select Product -> Scheme -> Runner.
Select Product -> Destination -> Generic iOS Device.
Select Product -> Archive to produce a build archive.
From the Xcode Organizer window, select your iOS app from the sidebar, then select the build archive you just produced.
Click the Validate… button to build.
Once the archive is successfully validated, click Upload to App Store.
Back on App Store Connect, check the status of your build from the Activities tab. Once it’s ready to release:
Go to Pricing and Availability and fill out the required information.
From the sidebar, select the status.
Select Prepare for Submission and complete all required fields.
Click Submit for Review.