workflows: mac-ssh-debug: name: macOS M2 Free Tier - SSH Debug # MUST be mac_mini_m2 to use the free 500 minutes instance_type: mac_mini_m2 # Optional: Safety limit so you don't burn all your minutes if you walk away max_build_duration: 60 scripts: - name: 🛑 Pause build for SSH Access script: | echo "🚀 VM is ready!" echo "👉 Go to the Codemagic UI, open this running build, and click 'Enable SSH'." echo "⏳ The build will pause here for 20 minutes to let you poke around..." # Pauses the script for 1200 seconds (20 minutes) sleep 3600 - name: Next Step (Optional) script: | echo "If you let the sleep command finish, the build continues here." # flutter build ios / xcodebuild / etc.