
Someone on the team suggests running fastlane match nuke to fix a code signing mess, and nobody is quite sure what it will break. That hesitation is healthy. fastlane match nuke revokes certificates on Apple's Developer Portal, deletes provisioning profiles for every app on the team and removes files from your match repo, and none of the revoking can be undone. This post explains exactly what each nuke type deletes in the current fastlane release, what keeps working afterwards, when you can avoid nuke entirely, and the order I follow when a reset really is needed for a Flutter or native iOS app.
Quick answer
fastlane match nuke distribution revokes every distribution certificate on your Apple team, deletes every App Store, Ad Hoc and Developer ID profile for every app on that team, and deletes the matching files from your match storage. nuke development does the same for development certificates and profiles, and nuke enterprise for in-house ones. Live App Store apps keep working, but Ad Hoc and in-house builds signed with the revoked certificates stop working, so preview first with --readonly, limit the run with --certificate_id where you can, and only nuke when a simpler fix won't do.
What this means for your app or business
Think of nuke as changing every lock in the building because one key is lost. It works, but everyone needs a new key afterwards.
- What it costs: usually half a day of developer time to reset, re-create signing and get CI green again. More if several apps or outside agencies share the same Apple team.
- The risk: testers' Ad Hoc builds stop opening, other apps on the same Apple account lose their profiles, and a build waiting in App Store Connect may be marked invalid. Apps already on the App Store are not affected.
- When to get help: if nobody on the team set up match, or the Apple account is shared with other apps or vendors, have someone who knows the setup plan the reset before anyone runs a command.
What does fastlane match nuke delete for each type?
In 2.242.0 there are three subcommands. Running plain fastlane match nuke or fastlane match nuke appstore only prints this error:
[!] Please run `fastlane match nuke [type], allowed values: development, distribution and enterprise. For the 'adhoc' type, please use 'distribution' instead.The end of that message matters: there is no way to nuke App Store profiles without also nuking Ad Hoc ones. Here is what each type removes, read from prepare_list and certificate_type in nuke.rb:
| Nuke type | Certificates revoked | Profiles deleted on the portal | Files deleted from match storage |
|---|---|---|---|
| development | Apple Development, iOS Development, Mac Development | All development profiles (iOS, macOS, tvOS, Catalyst) | certs/development, profiles/development |
| distribution | Apple Distribution, iOS Distribution, Mac App Distribution | All App Store, Ad Hoc and Developer ID profiles | certs/distribution, profiles/appstore, profiles/adhoc, profiles/developer_id |
| enterprise | iOS Distribution (the only type it requests) | All in-house profiles | certs/enterprise, profiles/enterprise |
Three details catch people out:
- It works on the whole team, not your app. The confirmation prompt warns
The :app_identifier value will be ignored - this will delete all profiles for all your apps!In my offline test I setapp_identifierto one app and the second app's App Store profile was deleted too. - It revokes certificates match didn't create. It asks Apple's API for every certificate of those types, so ones made by Xcode on a teammate's Mac or by another CI service are on the list.
- It also deletes local copies. For each
.mobileprovisionfile it removes from storage, it also deletes the installed copy from the provisioning profiles folder of the Mac running the command.
It does not touch push certificates or APNs keys, because those are different certificate types that nuke.rb never requests.

What keeps working after a nuke?
Apple's Certificates overview is the reference here, and it disagrees slightly with the fastlane docs, so I go with the stricter of the two.
- Live App Store apps: keep working while your membership is valid. You just can't upload new builds signed with the revoked certificate.
- Builds in App Store Connect: Apple warns that builds uploaded but not yet submitted for App Review "may be marked as Invalid Binary" if signed with a revoked certificate. The fastlane docs say TestFlight builds still work, but I'd finish or submit anything in flight first.
- Ad Hoc builds on testers' phones: the fastlane docs say they are disabled after nuking, so plan to rebuild and redistribute. I treat installed development builds the same way.
- In-house (enterprise) apps: Apple says users can no longer run apps signed with a revoked in-house certificate.
nuke enterprisebreaks every installed copy. - Profiles that use the certificate: Apple's Revoke a certificate page says they become invalid. Nuke deletes them anyway.
Do I actually need nuke, or is there a smaller fix?
Usually you don't. These are the problems I see that people try to nuke away, and what I use instead:
- A profile is missing a new device:
fastlane match adhoc --force_for_new_devicesorfastlane match development --force_for_new_devices. This regenerates the profile only. - A profile is broken or has the wrong capabilities:
fastlane match appstore --forcerenews the profiles for your app identifiers and leaves the certificate alone. - CI keeps trying to create certificates: set
readonly: is_ciso CI only fetches. The match docs recommend readonly mode on CI. - "Maximum number of certificates" or "You already have a current Distribution certificate": revoke one unused certificate by hand, or nuke only that one with
--certificate_id. My post on the Apple Distribution certificate limit covers how to find the right one. - "Couldn't decrypt the repo": that is a passphrase problem, not a certificate problem. See fixing the match password error.
- You want to clean the match repo without revoking anything:
--safe_remove_certsremoves the certificate files from storage without revoking them. In my test it still deleted the portal profiles and the profile files, so it is not a no-op.
When the interactive prompt sees two or more certificates, 2.242.0 also asks Do you want to only nuke specific certificates and their associated profiles?. That prompt is skipped with --force, with --skip_confirmation (respected by nuke since 2.235.0) and on any non-interactive shell such as CI. Never put nuke in a lane that CI can run.
How do I reset certificates safely with fastlane match nuke?
This is the order I follow. Pin fastlane first so everyone runs the same code:
# Gemfile
source "https://rubygems.org"
gem "fastlane", "~> 2.242"1. Back up the match repo. git storage keeps old files in history, but a mirror copy is cheap and also covers someone force-pushing. With S3 or Google Cloud storage, copy the bucket instead.
git clone --mirror git@github.com:your-org/ios-certificates.git \
"ios-certificates-backup-$(date +%Y%m%d).git"2. Preview with readonly. In 2.242.0 nuke logs in, prints the certificates, profiles and files it would delete, and then stops with this error. My offline test confirmed nothing was revoked or committed.
[!] `fastlane match nuke` doesn't delete anything when running with --readonly enabledThe command for the preview:
export MATCH_PASSWORD="your-match-passphrase"
bundle exec fastlane match nuke distribution \
--readonly \
--api_key_path fastlane/asc_api_key.json \
--git_url git@github.com:your-org/ios-certificates.gitasc_api_key.json uses the key file format from the fastlane App Store Connect API docs. Read every row of the output. If you see profiles for apps you don't own, stop and talk to whoever does.
3. Tell the team and pause CI. Check App Store Connect for builds waiting for review, warn testers that Ad Hoc builds will stop working, and disable scheduled release jobs. Only an Account Holder or Admin can revoke and create distribution certificates, so make sure that person is available.
4. Nuke one type. Drop --readonly, keep the confirmation prompt, and add --certificate_id if you only need one certificate gone.
bundle exec fastlane match nuke distribution \
--api_key_path fastlane/asc_api_key.json \
--git_url git@github.com:your-org/ios-certificates.git5. Re-create signing from one machine. Run match without readonly once, so only one new certificate is created:
bundle exec fastlane match appstore --api_key_path fastlane/asc_api_key.json
bundle exec fastlane match adhoc --api_key_path fastlane/asc_api_key.json6. Update anything outside match. match-based CI picks up the new files automatically. Other places don't: a base64 .p12 stored as a CI secret, a second CI service, or a teammate's Mac with old profiles. If you use an App Store Connect API key on CI, nothing about the key changes. My App Store Connect API key guide shows that setup.
7. Re-run CI and upload a build. Keep CI read-only:
# ios/fastlane/Fastfile
default_platform(:ios)
platform :ios do
lane :beta do
api_key = app_store_connect_api_key(
key_id: ENV["ASC_KEY_ID"],
issuer_id: ENV["ASC_ISSUER_ID"],
key_content: ENV["ASC_KEY_P8_BASE64"],
is_key_content_base64: true
)
setup_ci if is_ci
match(type: "appstore", api_key: api_key, readonly: is_ci)
# ...your existing build and upload_to_testflight steps stay the same
end
endHow do I verify the reset worked?
- On the Mac or runner,
security find-identity -v -p codesigninglists exactly one new Apple Distribution identity for your team. - In Certificates, Identifiers & Profiles, the team has the one distribution certificate you expect, and new match profiles for each app.
- The match repo's latest commits are
[fastlane] Nuked files for distributionfollowed by match adding the new files. bundle exec fastlane match appstore --readonlysucceeds on a clean machine.- A CI build reaches TestFlight, and an Ad Hoc build installs on a test device.
How do I stop needing nuke again?
- Run
readonly: is_cieverywhere, and give write access to the match repo to one or two people. - Keep nuke out of every Fastfile lane and script, and never combine it with
skip_confirmation. - Use one App Store Connect API key for CI instead of personal Apple IDs.
- Use manual signing with the match profiles for release builds, so Xcode isn't managing certificates behind match's back. The match docs note that Xcode sometimes revokes certificates.
- Keep Gemfile.lock committed, so a new fastlane version doesn't arrive unannounced.
- Before any reset, run the
--readonlypreview and share the output with the team.
Frequently asked questions
What does fastlane match nuke distribution delete?
It revokes every Apple Distribution, iOS Distribution and Mac App Distribution certificate on the Apple team, deletes every App Store, Ad Hoc and Developer ID provisioning profile for every app on the team, and deletes the matching certificate and profile files from your match storage.
Will fastlane match nuke break my live App Store app?
No. Apple says existing App Store apps are not affected while your membership is valid. You can no longer upload builds signed with the revoked certificate, and builds uploaded but not yet submitted for review may be marked Invalid Binary.
Is there a fastlane match nuke appstore command?
No. In fastlane 2.242.0 the only nuke types are development, distribution and enterprise. App Store and Ad Hoc profiles are both removed by nuke distribution.
Can I nuke only one certificate?
Yes. Pass certificate_id with the certificate's portal ID, which nuke respects since fastlane 2.234.0. It then revokes only that certificate and deletes only the profiles that contain it.
How do I preview what fastlane match nuke will delete?
Run the nuke command with the readonly option. In fastlane 2.242.0 it lists the certificates, profiles and files it would remove and then stops without deleting anything.
What does safe_remove_certs do in match nuke?
It removes the certificate files from match storage without revoking the certificates on the Developer Portal. Provisioning profiles are still deleted from the portal and from storage.
Does fastlane match nuke revoke push notification certificates?
No. Nuke only requests development, distribution or in-house signing certificate types, so Apple Push Services certificates and APNs keys are left alone.
Sources
- match (sync_code_signing) documentation (fastlane docs)
- match_nuke action documentation (fastlane docs)
- match/lib/match/nuke.rb at 2.242.0 (fastlane on GitHub, 2026-11-16)
- match/lib/match/options.rb at 2.242.0 (fastlane on GitHub, 2026-11-16)
- match/lib/match/commands_generator.rb at 2.242.0 (fastlane on GitHub, 2026-11-16)
- fastlane 2.242.0 (RubyGems, 2026-11-16)
- fastlane 2.234.0 release notes (match_nuke certificate_id filtering, #30022) (fastlane on GitHub, 2026-05-10)
- fastlane 2.235.0 release notes (nuke respects skip_confirmation, #30023) (fastlane on GitHub, 2026-05-26)
- Certificates overview (Apple Developer)
- Revoke a certificate (Apple Developer)
- Using the App Store Connect API with fastlane (fastlane docs)
Keep reading
- Apple Distribution Certificate Limit: Fix It in CI/CDFix the Apple Distribution certificate limit in CI: free a slot safely, then make fastlane, GitHub Actions or Codemagic reuse one shared certificate.
- fastlane match password: Fix "Couldn't decrypt the repo"Why fastlane match says "Couldn't decrypt the repo" on GitHub Actions when your passphrase is right, and how to fix MATCH_PASSWORD for Flutter iOS builds.
- Fastlane 2FA on CI: Use an App Store Connect API Keyfastlane hangs on CI asking for a 2FA code? Switch match and TestFlight uploads to an App Store Connect API key, with a tested Fastfile and workflow.
Comments
Share a question or note about this article.
Loading comments…