Created
December 5, 2025 11:03
-
-
Save progressify/0144a2767bd479fba811e680b85d92e8 to your computer and use it in GitHub Desktop.
Build iOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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