# Build failure

### Why is my app build failing?

If your build is failing, your build is not working, or your download is not completing, it is usually due to a configuration issue.

Check the exact error message shown in the Download section and match it with the issue below.

#### Common build failure reasons

* Certificate mismatch (iOS)\
  The provisioning profile does not match the uploaded distribution certificate.

{% content-ref url="/pages/IqK3cxWXLggdoahp8qYV" %}
[Provisioning profile mismatch](/app/download/build-failure/provisioning-profile-mismatch.md)
{% endcontent-ref %}

* Notification profile mismatch (iOS)\
  The notification provisioning profile Bundle ID does not match the app.

{% content-ref url="/pages/k9rDcRUxbtMpDPh0A3oO" %}
[Notification profile mismatch](/app/download/build-failure/notification-profile-mismatch.md)
{% endcontent-ref %}

* Expired certificate (iOS)\
  The uploaded distribution certificate has expired.

{% content-ref url="/pages/lCGj4P5zCddTOIwE8rUe" %}
[Expired iOS certificate](/app/download/build-failure/expired-ios-certificate.md)
{% endcontent-ref %}

* Invalid Firebase configuration\
  Firebase settings, keys, or IDs are incorrect or incomplete.

{% content-ref url="/pages/MYrWBBHBhlS4ayFW5UQg" %}
[Invalid Firebase configuration](/app/download/build-failure/invalid-firebase-configuration.md)
{% endcontent-ref %}

* Invalid Firebase file\
  The uploaded Firebase configuration file is incorrect or does not match your app.

{% content-ref url="/pages/DXdarAOrC27WtmxlgnEj" %}
[Invalid Firebase File](/app/download/build-failure/invalid-firebase-file.md)
{% endcontent-ref %}

* Android build error\
  Unsupported special characters in the app name may cause the Android build to fail.

{% content-ref url="/pages/xYgB2GjTaiCQWHY9mhBi" %}
[Android build failure](/app/download/build-failure/android-build-failure.md)
{% endcontent-ref %}


---

# 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://docs.appmysite.com/app/download/build-failure.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.
