Skip to content

Instantly share code, notes, and snippets.

@progressify
Created December 5, 2025 11:03
Show Gist options
  • Select an option

  • Save progressify/0144a2767bd479fba811e680b85d92e8 to your computer and use it in GitHub Desktop.

Select an option

Save progressify/0144a2767bd479fba811e680b85d92e8 to your computer and use it in GitHub Desktop.
Build iOS
#!/bin/bash
# ----------- Configurazioni -----------
KEY_ID="<your-key-id-here>"
ISSUER_ID="<your-issuer-id-here>"
# -------------------------------------
echo -e "\n🧹 Pulisco il progetto..."
flutter clean
echo -e "\n🏛️ Eseguo la build dell'IPA..."
flutter build ipa
if [ $? -ne 0 ]; then
echo -e "❌ Build fallita."
exit 1
fi
echo -e "\n🚀 Caricamento su App Store Connect..."
# Trova l'ultimo file .ipa generato
IPA_PATH=$(ls -t build/ios/ipa/*.ipa | head -n 1)
if [ -z "$IPA_PATH" ]; then
echo -e "\n❌ Nessun file .ipa trovato."
exit 1
fi
xcrun altool --upload-app -f "$IPA_PATH" --type ios --apiKey "$KEY_ID" --apiIssuer "$ISSUER_ID"
echo -e "\n✅ Caricamento completato."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment