Apple Silicon iOS CI with Jenkins and Fastlane: The PollSCM 'H/1' Trap That Silently Stalls Builds
The `H/1 * * * *` cron shorthand silently means once per hour rather than every minute, so any Jenkins job using it will stall for a full hour; the guide's diagnostic method works on any Jenkins instance. More broadly, it proves a single Mac can run a complete iOS CI chain locally, and its repo-centric Jenkinsfile design makes moving to a cloud scheduler plus inbound Mac agent a config change, not a rewrite.
This guide walks through a full iOS CI build on an Apple Silicon Mac, using a local Jenkins instance and Fastlane, with no public server—pure polling. Pushes to develop trigger automatic packaging within a minute, and each feature branch gets its own multibranch job that runs SwiftLint and a simulator compile, so MRs only merge when the branch is green.
The practical value is in the pitfalls. Jenkins LTS now demands JDK 21, Homebrew's bottles break on macOS 26 due to sandbox-exec removal, and the brew fastlane package is missing gems—you must install via gem. The article also details how to handwrite launchd plists to avoid brew services losing logs, fix plugin installs via offline hpi files, and unlock keychains for background Jenkins sessions.
The single biggest trap is `pollSCM('H/1 * * * *')`. The H/1 syntax in Jenkins cron means "one hash-chosen minute per hour," not every minute. The article shows a diagnostic path that ends in decompiling `Trigger.class` and checking the CronTab's minute bit count to prove the schedule. The fix is using `'* * * * *'` for true minute polling. It also covers migrating to cloud Jenkins with the Mac as an inbound JNLP agent, which naturally passes NAT and enables Gitee Webhook event triggering instead of polling.
The H/1 cron trap is a generic Jenkins hazard: hash-based cron spec actively hides the real schedule, and the only reliable way to catch it is decompiling the core and inspecting internal scheduling queues.
Polling-based CI on a local Mac is a workable stopgap for small teams, but webhook event triggering is strictly better; the article's repo-stored Jenkinsfile is what makes that switch nearly free.
Keeping the entire pipeline definition in the repository, as this setup does, turns a migration from local to cloud into a config exercise rather than a code rewrite, which is the real architectural lesson.