Failed to generate Apple Distribution Certificate

Hey everyone, i try to build ipa file with expo build:ios

first, i show you the project properties, i run expo diagnostics

Expo CLI 3.0.10 environment info:
System:
OS: macOS 10.14.5
Shell: 5.3 - /bin/zsh
Binaries:
Node: 12.4.0 - /usr/local/bin/node
Yarn: 1.17.0 - /usr/local/bin/yarn
npm: 6.9.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
IDEs:
Xcode: 10.3/10G8 - /usr/bin/xcodebuild
npmPackages:
expo: ^32.0.0 => 32.0.6
react: 16.5.0 => 16.5.0
react-native: https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz => 0.57.1
react-navigation: ^1.5.8 => 1.6.1
npmGlobalPackages:
expo-cli: 3.0.10

And when i run expo build:ios i choose expo handle and i get:

? Apple ID: idanlevi2@gmail.com
? Password (for idanlevi2@gmail.com): [hidden]
Trying to authenticate with Apple Developer Portal...
Authenticated with Apple Developer Portal successfully!
You have 2 teams associated with your account
? Which team would you like to use? 2) 8QN2Z2U2MC "Start Ach" (Company/Organization)
We do not have some credentials for you: Apple Distribution Certificate, Apple Push Notifications service key, Apple Provisioning Profile
? How would you like to upload your credentials? Expo handles all credentials, you can still provide overrides
? Will you provide your own Apple Distribution Certificate? Let Expo handle the process
✔ Didn't find any previously uploaded Apple Distribution Certificate
? Will you provide your own Apple Push Notifications service key? Let Expo handle the process
✔ Didn't find any previously uploaded Apple Push Notifications service key
✔ App ID found on Apple Developer Portal.
We're going to generate:
- Apple Distribution Certificate
- Apple Push Notifications service key
- Apple Provisioning Profile
✖ Failed to generate Apple Distribution Certificate

You can have only three Apple Distribution Certificates generated on your Apple Developer account.
Please revoke the old ones or reuse existing from your other apps.
Please remember that Apple Distribution Certificates are not application specific!

Hey @idanlevi1,

As the message at the bottom of the script indicates, you’ll need to revoke or reuse one of your dist certs. I’d recommend going to your apple dev portal and checking if there are any that aren’t being used and if so, remove them.

Cheers,
Adam

1 Like

After i revoked the certs i got another error:

Waiting for build to complete. You can press Ctrl+C to exit.
✖ Build failed.
Standalone build failed!

Are there any build logs available at the build page that the cli spits out?

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