iOS: error with this build


I am trying to build an ios app with my own distribution certificate, where as the push notification certificates are handled by Expo.

There are 2 issues that I’am facing:

  1. While building the app (using command exp build:ios), it gives an error validating credentials, and the message: Internal error occurred.
    And after running the command for more than 10 times, with the same credentials, it works.

[exp] Error validating credentials. You may need to clear them (with -c) and try again.
[exp] Unable to validate credentials. Request ID d9ca3b90-7847-11e7-adce-b73ca0cf04cd, message: Internal error occurred. Please try again in a few minutes or contact support.

  1. but then when I check the build status it says
    iOS: There was an error with this build.

I do not understand what is going wrong here! and there are no logs for the same!
Following are the commands executed and their output. Any help at the earliest would be highly appreciated.

exp build:ios

[exp] Making sure project is set up correctly…
[exp] Your project looks good!
[exp] Checking if current build exists…

[exp] No currently active or previous builds for this project.
[exp] Checking for existing Apple credentials…
[exp] Validating Apple credentials…
[exp] Credentials valid.
[exp] Validating distribution certificate…
[exp] Validating app id…
[exp] Validating push certificate…
[exp] Starting build process…
[exp] Publishing…
[exp] Building iOS bundle
[exp] Building Android bundle
[exp] Analyzing assets
[exp] Uploading assets
[exp] No assets changed, skipped.
[exp] Uploading JavaScript bundles
[exp] Published
[exp] Your URL is

[exp] Building…
[exp] Build started, it may take a few minutes to complete.
[exp] Build ID: f4d7b9b7-2be7-4f15-b5c7-53ccfd80c112
[exp] Run exp build:status to monitor it.

exp build:status

[exp] Making sure project is set up correctly…
[exp] Your project looks good!
[exp] Checking if current build exists…

[exp] ============
[exp] Build Status
[exp] ============

[exp] iOS: There was an error with this build.

This is the build id

[exp] Build ID: dd340494-0ff4-4e40-86a1-79978f559a17

Hi! It looks like the distribution cert you provided isn’t formatted the way our builders expect. The p12 file you upload should have exactly one “bag” for the public cert and one “bag” for the private key. We usually recommend that people follow this guide on making a p12 file for uploading to the standalone app builders.


Thanks for the response!

I had used the link you shared for making the p12 file in earlier build, which used to fail.

Then I followed the instruction in this link.
And exported the distribution certificate from Keychain Access -> Certificates filter.
Instead of creating p12 from private key in Keychain Access -> Keys as suggested in this guide

And I was able to successfully build the application.


Excellent! Thanks for the link.