fastlane: Inaccurate error "Could not create another Distribution certificate"

New Issue Checklist

Issue Description

I was trying to setup fastlane match for the first time. I kept having to rerun it because of various errors. Eventually I got to the error “Could not create another Distribution certificate, reached the maximum number of available Distribution certificates.” so I went to https://developer.apple.com/account/resources/certificates/list and revoked a distribution certificate and ran fastlane match again. Same error so I deleted another one. Finally I have deleted them all but continue to receive the same error from fastlane so I ran with --verbose and it turns out that was not the error at all.

The actual error was

    "status" : "409",
    "code" : "ENTITY_ERROR",
    "title" : "There is a problem with the request entity",
    "detail" : "You already have a current Developer ID Application certificate or a pending certificate request."

I still don’t quite know what to do with that but at least it is a little more accurate. From https://developer.apple.com/forums/thread/659545 I gather that I can’t revoke the developer ID certificate easily and I wish I would have known that before fastlane created more of them.

Command executed

fastlane match developer_id username:"REDACTED" app_identifier:"REDACTED" --verbose

Environment

 swift-driver version: 1.26.9 
✅ fastlane environment ✅

Stack

Key Value
OS 11.5.2
Ruby 2.7.4
Bundler? true
Git git version 2.30.1 (Apple Git-130)
Installation Source ~/.gem/bin/fastlane
Host macOS 11.5.2 (20G95)
Ruby Lib Dir /opt/homebrew/Cellar/ruby@2.7/2.7.4/lib
OpenSSL Version OpenSSL 1.1.1k 25 Mar 2021
Is contained false
Is homebrew false
Is installed via Fabric.app false
Xcode Path /Applications/Xcode-beta.app/Contents/Developer/
Xcode Version 13.0
Swift Version 5.5

System Locale

Variable Value
LANG en_US.UTF-8
LC_ALL en_US.UTF-8
LANGUAGE

fastlane files:

No Fastfile found

No Appfile found

fastlane gems

Gem Version Update-Status
fastlane 2.193.1 💥 Check failed

Loaded fastlane plugins:

No plugins Loaded

Related: https://github.com/fastlane/fastlane/issues/19150 https://github.com/fastlane/fastlane/issues/18605

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 2
  • Comments: 17

Most upvoted comments

This is still a problem.

@piscespieces running fastlane match appstore fixed it for me! thank you

I have solved exact the same issue by running fastlane match nuke and repeating attempt.