name: field-tech-ios # Build iOS — EXIGE un runner macOS auto-hébergé (un Mac enregistré comme act_runner, label "macos") + compte Apple # pour la signature/TestFlight (en attente du passeport). Déclenché manuellement tant que le runner Mac n'existe pas. # Voir apps/field-tech/CI-SETUP.md §iOS. on: workflow_dispatch: {} jobs: build-ios: runs-on: macos # runner macOS auto-hébergé (Xcode requis ; iOS ne build PAS sur Linux) defaults: run: working-directory: apps/field-tech steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: { node-version: '20' } - name: Build web + Capacitor iOS run: | npm install --no-audit --no-fund npm run build [ -d ios ] || npx cap add ios npx cap sync ios cd ios/App && pod install - name: Compile (simulateur, NON signé — vérifie que ça build) working-directory: apps/field-tech/ios/App run: xcodebuild -workspace App.xcworkspace -scheme App -configuration Debug -sdk iphonesimulator -derivedDataPath build CODE_SIGNING_ALLOWED=NO # APPAREIL/TestFlight (quand compte Apple prêt) : importer cert + provisioning profile (secrets) → # xcodebuild -archive + -exportArchive (signé) → upload TestFlight. Licence Transistorsoft iOS requise pour release.