diff --git a/.gitea/workflows/deploy-ios.yaml b/.gitea/workflows/deploy-ios.yaml index a39cda9..e2453ab 100644 --- a/.gitea/workflows/deploy-ios.yaml +++ b/.gitea/workflows/deploy-ios.yaml @@ -70,30 +70,36 @@ jobs: FIREBASE_IOS_APP_ID: ${{ secrets.FIREBASE_IOS_APP_ID }} run: | export PATH="/opt/homebrew/opt/ruby/bin:/opt/homebrew/bin:$PATH" + # On s'assure d'avoir la version de Bundler compatible Fastlane gem install bundler -v 2.7.2 --no-document cd ios bundle _2.7.2_ config set path 'vendor/bundle' - # Création du Gemfile avec les correctifs pour Ruby 3.4+ + # Reconstruction d'un Gemfile "blindé" pour Ruby 3.4 + rm -f Gemfile Gemfile.lock echo "source 'https://rubygems.org'" > Gemfile - echo "gem 'fastlane', '>= 2.210.0'" >> Gemfile + echo "gem 'fastlane', '>= 2.214.0'" >> Gemfile echo "gem 'fastlane-plugin-firebase_app_distribution'" >> Gemfile - # AJOUT DES GEMS MANQUANTES DANS RUBY 3.4 + # BIBLIOTHÈQUES OBLIGATOIRES POUR ÉVITER LE NAMEERROR echo "gem 'abbrev'" >> Gemfile echo "gem 'base64'" >> Gemfile echo "gem 'bigdecimal'" >> Gemfile echo "gem 'mutex_m'" >> Gemfile + echo "gem 'kconv'" >> Gemfile + echo "gem 'ostruct'" >> Gemfile # <-- Très important pour FastlaneCore + echo "gem 'csv'" >> Gemfile # <-- Requis pour les rapports de build bundle _2.7.2_ install - echo "🚀 Téléchargement de l'IPA vers Firebase..." + echo "🚀 Lancement de Fastlane..." + # L'utilisation de bundle exec garantit que Fastlane trouve ses Gems bundle _2.7.2_ exec fastlane run firebase_app_distribution \ app:"$FIREBASE_IOS_APP_ID" \ ipa_path:"../build/ios/ipa/*.ipa" \ service_credentials_file:"firebase_credentials.json" \ - release_notes:"Build stable TravelMate - Xcode 26.2" + release_notes:"TravelMate iOS - Version stable" - name: Nettoyage (Post-build) if: always()