IOS build failing with no details

#1

I’ve tried several different ways including clearing with -c, but IOS build keeps failing with no details.
It is also not generating the request ID
Really appreciate any kind of help

$ exp build:ios
[exp] There is a new version of exp available (49.0.2).
You are currently using exp 46.0.6
Run npm install -g exp to get the latest version
[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] Error validating credentials. You may need to clear them (with -c) and try again.
[exp] Request failed with status code 500
[exp] Error: Request failed with status code 500
at createError (/usr/local/lib/node_modules/exp/node_modules/axios/lib/core/createError.js:16:15)
at settle (/usr/local/lib/node_modules/exp/node_modules/axios/lib/core/settle.js:18:12)
at IncomingMessage.handleStreamEnd (/usr/local/lib/node_modules/exp/node_modules/axios/lib/adapters/http.js:191:11)
at emitNone (events.js:110:20)
at IncomingMessage.emit (events.js:207:7)
at endReadableNT (_stream_readable.js:1059:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)

#2

Hey @nanapro,

Can you update to the latest version of exp and see if that helps. @edgar has made several changes to help debug iOS build issues, that latest being a change that will print out what apple credentials you’re using when EXPO_DEBUG=true as env variable.

Cheers,

Adam

#3

Thanks @adamjnav . This upgrade helped. We didn’t upgrade because of compatibility issues, but we have upgrade looks like.
With this upgrade, I’m seeing below error. Previous builds used to recognize and handle existing push notifications certs on apple server, but something broke in this build process?
Do I have to revoke the existing push cert on apple side? its painful as we need to change certs on our server etc

Thanks again for quick response

[exp] Reason:You already have a current Apple Push Services certificate or a pending certificate request. Maximum number of certificates generated, raw:{“responseId”:“7099a796-20d8-4a06-9fc5-07fc343fda4d”,“resultCode”:7460,“resultString”:“Maximum number of certificates generated”,“userString”:“You already have a current Apple Push Services certificate or a pending certificate request.”,“creationTimestamp”:“2018-01-27T21:34:32Z”,“protocolVersion”:“QH65B2”,“userLocale”:“en_US”,“requestUrl”:“https://developer.apple.com/services-account/QH65B2/account/ios/certificate/submitCertificateRequest.action","httpCode”:200}
[exp] Error: Reason:You already have a current Apple Push Services certificate or a pending certificate request. Maximum number of certificates generated, raw:{“responseId”:“7099a796-20d8-4a06-9fc5-07fc343fda4d”,“resultCode”:7460,“resultString”:“Maximum number of certificates generated”,“userString”:“You already have a current Apple Push Services certificate or a pending certificate request.”,“creationTimestamp”:“2018-01-27T21:34:32Z”,“protocolVersion”:“QH65B2”,“userLocale”:“en_US”,“requestUrl”:“https://developer.apple.com/services-account/QH65B2/account/ios/certificate/submitCertificateRequest.action","httpCode”:200}
at IOSBuilder._throwIfFailureWithReasonDump (/Users/Edgar/universe/dev/exp/src/commands/build/IOSBuilder.js:389:13)
at IOSBuilder._callee6$ (/Users/Edgar/universe/dev/exp/src/commands/build/IOSBuilder.js:278:14)

#4

Hi, it means you already have the maximum certs. exp by default tries to make new certs.

Here is what happened.

You did exp build:ios at some point. exp made new certs and saved them to expo servers. Then you did exp build:ios -c at some point. This deletes the cert files on our servers for you. Then you tried exp build:ios and because we don’t have certs for you, exp tried to make new ones but because you already have 2 and apple does not allow more than 2 dist certs or 2 push certs, then we can’t make it for you.

So I’d recommend revoking the certs on the developer.apple.com account and then running build:ios which will make new certs.

1 Like
closed #5

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.