Flutter Code Signing Guide - iOS & Android | FlightStack
Setting Up Code Signing
Section titled “Setting Up Code Signing”iOS Code Signing
Section titled “iOS Code Signing”Certificates
Section titled “Certificates”- Generate a distribution certificate in Apple Developer portal
- Download and install in Keychain Access
- Export as .p12 file with password
Provisioning Profiles
Section titled “Provisioning Profiles”- Create App Store distribution profile
- Download and install
- Reference in ExportOptions.plist
ExportOptions.plist
Section titled “ExportOptions.plist”Create ios/ExportOptions.plist:
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict> <key>method</key> <string>app-store</string> <key>teamID</key> <string>YOUR_TEAM_ID</string></dict></plist>Android Signing
Section titled “Android Signing”Create Keystore
Section titled “Create Keystore”keytool -genkey -v -keystore upload-keystore.jks \ -keyalg RSA -keysize 2048 -validity 10000 \ -alias uploadConfigure Gradle
Section titled “Configure Gradle”Create android/key.properties:
storeFile=../upload-keystore.jksstorePassword=your-passwordkeyAlias=uploadkeyPassword=your-passwordUpdate android/app/build.gradle to use the keystore.