Skip to content

Commit 6b9c538

Browse files
committed
clarify when users need to delete a Distribution Certificate
1 parent 86a65d7 commit 6b9c538

File tree

1 file changed

+19
-13
lines changed

1 file changed

+19
-13
lines changed

docs/browser/bb-errors.md

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -205,12 +205,10 @@ There are, however, a few intermittent errors that can happen when *GitHub* and
205205
206206
If you get an error when building with a browser, you can use this page to figure out what to do - but don't be afraid to [ask for help](#help-with-errors).
207207
208-
!!! important "Certificate is missing"
209-
If you get this build error message: `No code signing identity found and can not create a new one because you enabled`, you do not have certificates needed to run the build.
210-
211-
If you have more than one Distribution Certificate, you may need to delete the oldest one using these instructions: [Revoke Extra Distribution Certificate](bb-errors.md#revoke-extra-distribution-certificate){: target="_blank" }.
212-
213-
* With `Loop 3.6.1` and newer, this should not happen. Make sure you [Add Variable](prepare-fork.md#add-variable){: target="_blank" } to automatically renew certificates. It only happened with `Loop 3.6.0` when Apple made a change to their infrastructure.
208+
!!! important "Build Credentials are Invalid"
209+
If you are a repeat builder and you get this build error message: `No code signing identity found and`. The phrase ends with `can not create a new one because you enabled readonly` but the `readonly` has backquotes around it. Sometimes, the phrase uses `cannot` and in other cases `can not`. This means you need to delete a Distribution Certificate and try again. See [Revoke Extra Distribution Certificate](bb-errors.md#revoke-extra-distribution-certificate){: target="_blank" }.
210+
211+
* A number of people who tried to update certificates after *Apple* changed things in May and before Loop 3.6.1 was released, may have Distribution Certificates that are not properly matched to profiles to create building credentials in their Match-Secrets repository
214212
215213
These are some of the most common errors to date.
216214
@@ -269,7 +267,7 @@ This is an example of a message that is not terribly descriptive - which is why
269267
270268
> With `Loop 3.6.0` or newer, certificates are automatically renewed if your developer account is up to date, all agreements are signed and you completed the new [Add Variable](prepare-fork.md#add-variable){: target="_blank" } step.
271269
272-
If your certificates have expired, you will see this error when you try to build. It does not have a clear annotation. The error string starts with: `No code signing identity found and can not create a new one because you enabled`.
270+
If your certificates have expired and you do not have the ENABLE_NUKE_VARIABLE configured, you will see this error when you try to build. It does not have a clear annotation. The error string starts with: `No code signing identity found and`. The phrase ends with `can not create a new one because you enabled readonly` but the `readonly` has backquotes around it. Sometimes, the phrase uses `cannot` and in other cases `can not`.
273271
274272
> The first automatic build when Loop 3.6.0 is released will update the files required for automatic certificate creation. The next automatic build will use the new files. So if the first attempt with Loop 3.6.0 fails, try again.
275273
@@ -607,7 +605,19 @@ Copy the words on the line below and paste them into the search function for you
607605
> A new one cannot be created because you enabled
608606
> ```
609607
610-
If that phrase is found with lines similar to the following:
608+
If that exact phrase is found with lines similar to those in [Bundle ID is wrong](#bundle-id-is-wrong) below and this is your first build, you have the `Bundle ID` problem.
609+
610+
However, this very similar phrase means you need to delete one or more Distribution Certificates and try again: `No code signing identity found and`. The phrase ends with `can not create a new one because you enabled readonly` but the `readonly` has backquotes around it. Sometimes, the phrase uses `cannot` and in other cases `can not`.
611+
612+
* Follow the directions to [Revoke Extra Distribution Certificate](#revoke-extra-distribution-certificate)
613+
614+
> If you attempted to create certificates or build during May/June 2025 while the fastlane issues were not fixed, you may very well have one or two Distribution Certificates in your account that are not properly matched to credentials in your Match-Secrets repository. They must be deleted manually.
615+
616+
> Do not be confused by this message: `There are no local code signing identities found.` That is always reported one time because you are building with a new computer in the cloud that does not yet have your code signing identities. Later on in the build process, the action will recover the code signing identities that you stored in your Match-Secrets.
617+
618+
#### Bundle ID is wrong
619+
620+
This is not typical and will only be seen for the very first build if you entered an incorrect TEAMID.
611621
612622
```
613623
[31mA new one cannot be created because you enabled `readonly`
@@ -807,14 +817,10 @@ https://github.com/my-name/Match-Secrets
807817

808818
### Revoke Extra Distribution Certificate
809819

810-
If you have the `ENABLE_NUKE_CERTS` variable added and set to `true`, you should not need this section for most apps. See [Add Variable](prepare-fork.md#add-variable){: target="_blank" } for instructions.
811-
812-
> A few apps still require manual steps for certificate renewal.
820+
Make sure you have the `ENABLE_NUKE_CERTS` variable added and set to `true`. See [Add Variable](prepare-fork.md#add-variable){: target="_blank" } for instructions.
813821

814822
This step is done at the *Apple* Developer site; click on this [link](https://developer.apple.com/account/resources/certificates/list).
815823

816-
If you only have *one* Certificate of the `Distribution` type, similar to the graphic shown below, skip ahead to [Delete Invalid Profiles](#delete-invalid-profiles). Ignore any other types of Certificate. Do not delete them.
817-
818824
> ![view the current certificates at Apple](img/certificates-01.png)
819825
820826
If you have two Certificates that have the `Distribution` type, select the oldest one and delete it.

0 commit comments

Comments
 (0)