Menu

Why your CI keeps creating iOS certificates (and how to stop it)
📰

Why your CI keeps creating iOS certificates (and how to stop it)

DEV Community: cicd·MacBuildCloud·15 days ago
#UylOv0Uw
#devtocicd#devto#dev#certificate#build
Long article (1408 words) — no AI summary yet.
Reading 0:00
15s threshold

I'm on the MacBuildCloud team. We run Mac build machines, and this is a bug we shipped into our own pipeline and then took back out. Nothing here depends on our product; every fix below works on GitHub Actions, a self-hosted runner, or any CI that throws its Mac away after each job.

The symptom

Open developer.apple.com, go to Certificates , and look for entries named like this:

Apple Development: Created via API

If you see one you don't remember making, and especially if you see several, there is a good chance a CI job made them.

We found ours during our own TestFlight test. The build passed. The .ipa was fine. Then we checked the team's certificate list and there was a new development certificate that nobody had asked for.

Why it happens

Three things combine:

The project uses automatic signing. That's the Xcode default, so most projects do.

The build runs xcodebuild archive with -allowProvisioningUpdates plus an App Store Connect API key.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.