# Troubleshooting iOS

<details>

<summary>I'm having issues related to "Certificates" while building.</summary>

There are a few certificate issues that we commonly see while publishing an iOS build. These include **"my distribution certificate has expired"** and **"you have reached the maximum number of certificates"**. In both cases, you will need to remove **all but one** of these certificates in order for Adalo to be able to create **one** so that we are able to upload this app to TestFlight (there can be a maximum of 2).\
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.

Each Apple Developer Account requires only one production & one distribution certificate to build all your apps under that account. If you have other apps dependent on your iOS certificates (even if non-Adalo) they will not be interrupted by revoking any unnecessary certificates, as long as the certificates are generated again by Adalo.

</details>

<details>

<summary>My error log mentions "You have already reached the maximum allowed number of keys for this service"</summary>

You will need to remove one of these keys in order for Adalo to be able to create one so that we are able to upload this app to TestFlight. To do this, please follow these steps:

1. Log in to <https://developer.apple.com>
2. Navigate to "Account"
3. Select "Certificates", then Identifiers and Profiles, then go to the left side and select keys.
4. Then revoke access on a key you don't need.
5. Go back to Adalo and create a new build for your iOS app. This will generate a fresh key and you should be able to proceed.

Adalo requires one key for push notifications within iOS apps which cannot be opted out of. In the absence of the keys, the Testflight build **will not** be successful.

</details>
