Build your app
π± Android Build & Publish (Play Store)
1. Build an App Bundle (Recommended for Play Store)
Run the following command from your Flutter project root:
flutter build appbundle
This generates an .aab file (Android App Bundle), which is required for Play Store uploads.
2. Build APK (Optional for Testing)
If you want to generate split APKs for testing:
flutter build apk --split-per-abi
Or build a single release APK:
flutter build apk
β
Use .aab for Play Store upload.
β
Use .apk mainly for local installation/testing.
π iOS Build & Publish (App Store / TestFlight)
1. Open iOS Project in Xcode
Navigate to your projectβs ios folder and open
Runner.xcworkspace in Xcode.
2. Update Package Name & App Info
In Xcode, update:
- Bundle Identifier (must be unique, e.g.,
com.yourcompany.SFMS) - App Display Name
- App Version & Build number
3. Build for iOS
In VS Code or terminal:
flutter build ios --release
Or directly build & archive using Xcode (Product β Archive).
4. TestFlight & App Store Upload
- Connect your Apple Developer Account in Xcode.
- Use Xcode Organizer to upload the archive to App Store Connect.
- First, your app will appear in TestFlight for internal/external testing.
- After review, you can publish it to the App Store.
β
Use .aab for Play Store (Android)
β
Use Xcode Archive for App Store/TestFlight (iOS)