test 15
This commit is contained in:
@@ -16,34 +16,37 @@ jobs:
|
|||||||
flutter pub get
|
flutter pub get
|
||||||
cd ios && pod install --repo-update && cd ..
|
cd ios && pod install --repo-update && cd ..
|
||||||
|
|
||||||
- name: Préparer le Code Signing (Mode Non-Invasif)
|
- name: Préparer le Code Signing (Final)
|
||||||
env:
|
env:
|
||||||
P12_BASE: ${{ secrets.IOS_P12_BASE64 }}
|
P12_BASE: ${{ secrets.IOS_P12_BASE64 }}
|
||||||
P12_PASS: ${{ secrets.IOS_P12_PASSWORD }}
|
P12_PASS: ${{ secrets.IOS_P12_PASSWORD }}
|
||||||
PROV_BASE: ${{ secrets.IOS_PROVISION_BASE64 }}
|
PROV_BASE: ${{ secrets.IOS_PROVISION_BASE64 }}
|
||||||
run: |
|
run: |
|
||||||
# 1. On supprime l'ancien keychain de build s'il existe
|
# 1. Nettoyage complet
|
||||||
security delete-keychain build.keychain || true
|
security delete-keychain build.keychain || true
|
||||||
|
|
||||||
# 2. Création du keychain SANS le mettre par défaut
|
# 2. Création du trousseau temporaire
|
||||||
# Cela évite que tes autres apps (NordPass, Upsell) ne perdent leurs accès.
|
|
||||||
security create-keychain -p "" build.keychain
|
security create-keychain -p "" build.keychain
|
||||||
security unlock-keychain -p "" build.keychain
|
security unlock-keychain -p "" build.keychain
|
||||||
|
|
||||||
# 3. On l'ajoute à la liste de recherche UNIQUEMENT
|
# 3. LIER LE TROUSSEAU (Indispensable pour Xcode 26.2)
|
||||||
# Xcode pourra lire dedans, mais le reste du Mac restera sur 'login'
|
# On l'ajoute à la liste de recherche pour que Xcode le trouve
|
||||||
security list-keychains -d user -s build.keychain $(security list-keychains -d user | xargs)
|
security list-keychains -d user -s build.keychain $(security list-keychains -d user | xargs)
|
||||||
|
|
||||||
# 4. Importation du certificat (Xcode 26.2)
|
# 4. Importation du certificat Apple Distribution
|
||||||
echo "$P12_BASE" | base64 -D -o cert.p12
|
echo "$P12_BASE" | base64 -D -o cert.p12
|
||||||
security import cert.p12 -k build.keychain -P "$P12_PASS" -T /usr/bin/codesign
|
security import cert.p12 -k build.keychain -P "$P12_PASS" -T /usr/bin/codesign -T /usr/bin/productsign
|
||||||
|
|
||||||
# 5. Autorisation de signature sans popup
|
# 5. Autoriser la signature automatique
|
||||||
security set-key-partition-list -S apple-tool:,apple: -s -k "" build.keychain
|
security set-key-partition-list -S apple-tool:,apple: -s -k "" build.keychain
|
||||||
|
|
||||||
# 6. Installation du Profil de Provisionnement
|
# 6. Installation du Profil (be.devdayronvl.TravelMate)
|
||||||
mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
|
mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
|
||||||
echo "$PROV_BASE" | base64 -D -o ~/Library/MobileDevice/Provisioning\ Profiles/distribution.mobileprovision
|
echo "$PROV_BASE" | base64 -D -o ~/Library/MobileDevice/Provisioning\ Profiles/dist.mobileprovision
|
||||||
|
|
||||||
|
# 7. DEBUG : Vérifier que Xcode "voit" bien une identité valide
|
||||||
|
echo "Identités de signature détectées :"
|
||||||
|
security find-identity -v -p codesigning build.keychain
|
||||||
|
|
||||||
- name: Build IPA (Optimisé Xcode 26.2)
|
- name: Build IPA (Optimisé Xcode 26.2)
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user