From 15a73192390f3c93a66352d2f86710d754117f49 Mon Sep 17 00:00:00 2001 From: Van Leemput Dayron Date: Sat, 10 Jan 2026 21:13:42 +0100 Subject: [PATCH] test 8 --- .gitea/workflows/deploy-ios.yaml | 44 +++++++++++++++++--------------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/.gitea/workflows/deploy-ios.yaml b/.gitea/workflows/deploy-ios.yaml index 5343e5d..b3fc10c 100644 --- a/.gitea/workflows/deploy-ios.yaml +++ b/.gitea/workflows/deploy-ios.yaml @@ -58,41 +58,45 @@ jobs: mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles echo "$PROVISIONING_PROFILE_BASE64" | base64 -D -o ~/Library/MobileDevice/Provisioning\ Profiles/distribution.mobileprovision - + - name: Lancer Fastlane & Build IPA working-directory: ./ios env: FIREBASE_IOS_APP_ID: ${{ secrets.FIREBASE_IOS_APP_ID }} run: | - # 1. Nettoyage des anciens chemins Ruby + # 1. Nettoyage des variables Ruby pour éviter les conflits unset GEM_HOME unset GEM_PATH - - # 2. Utilisation du Ruby de Homebrew (compatible Xcode 26.2) export PATH="/opt/homebrew/opt/ruby/bin:/opt/homebrew/bin:$PATH" - - # 3. Réinstallation de Bundler pour corriger le LoadError - # On installe la version la plus stable pour Ruby 3.4 - gem install bundler --no-document - - # 4. Préparation du Gemfile - rm -rf vendor Gemfile.lock .bundle - echo "source 'https://rubygems.org'" > Gemfile - echo "gem 'fastlane'" >> Gemfile - echo "gem 'fastlane-plugin-firebase_app_distribution'" >> Gemfile - - # 5. Installation locale des dépendances - bundle install - # 6. Construction de l'IPA (Optimisé Xcode 26.2) + # 2. Réinstallation de Bundler (Version 2.5+ requise pour Ruby 3.4) + gem install bundler --no-document + + # 3. Création d'un Gemfile avec des versions STRICTES et MODERNES + rm -rf vendor Gemfile.lock .bundle Gemfile + echo "source 'https://rubygems.org'" > Gemfile + # On force Fastlane en version 2.x pour éviter Nokogiri 1.6 + echo "gem 'fastlane', '>= 2.210.0'" >> Gemfile + echo "gem 'fastlane-plugin-firebase_app_distribution'" >> Gemfile + # Patchs nécessaires pour Ruby 3.4 + echo "gem 'base64'" >> Gemfile + echo "gem 'bigdecimal'" >> Gemfile + echo "gem 'mutex_m'" >> Gemfile + + # 4. Installation (Sans installer les gems de développement inutiles) + bundle install --path vendor/bundle + + # 5. Construction de l'IPA (Optimisé Xcode 26.2) cd .. flutter build ipa --release --export-method ad-hoc cd ios - # 7. Envoi vers Firebase + # 6. Envoi vers Firebase echo "🚀 Envoi de l'IPA vers Firebase..." + # On utilise 'bundle exec' pour être sûr d'utiliser la version installée bundle exec fastlane run firebase_app_distribution \ app:"$FIREBASE_IOS_APP_ID" \ ipa_path:"../build/ios/ipa/*.ipa" \ - service_credentials_file:"firebase_credentials.json" \ No newline at end of file + service_credentials_file:"firebase_credentials.json" \ + release_notes: "Build iOS via Xcode 26.2" \ No newline at end of file