# Build Error: Distribution certificate has expired

Although not common, you may have an iOS build fail if your Development or Distribution certificates have expired. These certificates have expiration dates and will need to be revoked if they are out of date.

#### Possible Cause:

1. **Your Distribution Certificate has expired.**
2. **Your Development Certificate has expired**

#### Resolution:

Remove **all but one** of these certificates in order for Adalo to be able to create a new one when uploading this app to TestFlight (there can be a maximum of 2).<br>

To do this, please follow these steps:

1. Go to your [iOS Developer Account](https://developer.apple.com/account/ios/profile/profileList.action?type=production)
2. Click on **Production** under the **Certificates** menu.
3. Click on the **iOS Distribution** certificate that is about to expire.
4. Click **Revoke.**
5. Click **Revoke** to confirm that you want to revoke the certificate.
6. Go back to Adalo and create a new build for your iOS app. This will generate a fresh certificate.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.adalo.com/publishing-apps/publishing-to-the-apple-app-store/submit-your-build-to-the-app-store/build-error-distribution-certificate-has-expired.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
