Failed to set up Distribution Certification after transferring app to another Apple account

Recently I transferred my app to another Apple Enterprise account. I used the old Expo account I did expo credentials:manager and let Expo create a new Distribution Certificate with the new enterprise apple account. Then I did expo build:ios -c and select the certificate Expo created. However it showed me an error message: Failed to set up Distribution Certificate

This is what the terminal looked like:

expo build:ios -c
:heavy_check_mark: Choose the build type you would like: › archive

Checking if there is a build in progress…

Configuring credentials for eatmatch in project EatMatch
Fetching available credentials
? Do you have access to the Apple account that will be used for submitting this app to the App Store? Yes
Please enter your Apple Developer Program account credentials. These credentials are needed to manage certificates, keys and provisioning profiles in your Apple Developer account.
The password is only used to authenticate with Apple and never stored
Learn more here (​https://bit.ly/2VtGWhU​)
? Apple ID: [hidden]
? Password (for xx@xx.xx): [hidden]
Authenticating to Apple Developer Portal…
Authenticated with Apple Developer Portal successfully!
Only 1 team associated with your account, using Apple Team with ID: xx
:heavy_check_mark: App ID found on Apple Developer Portal.
:heavy_check_mark: Getting Distribution Certificates from Apple…
? Distribution Certificate (Cert ID: xx, Serial number: xx, Team ID: xx)
not used by any apps
:white_check_mark: Currently valid on Apple’s servers.
Would you like to use this certificate? Yes
Using Distribution Certificate: xx
Failed to set up Distribution Certificate
Failed to prepare all credentials.
The next time you build, we will automatically use the following configuration:

This is when I tried to use existing Distribution Certificate:

expo credentials:manager
Configuring credentials for eatmatch in project EatMatch
? Select platform ios
Fetching available credentials
Available credentials for iOS apps

? What do you want to do? Use existing Distribution Certificate in current project
? Select certificate from the list. Distribution Certificate (Cert ID: Z22ZK7UNZ3, Serial number: 23CCEFDEC13D9CA9, Team ID: 8N92ZF8W45)
not used by any apps
:question: Validity of this certificate on Apple’s servers is unknown.
ApiV2Error: An unknown error occurred.
at ApiV2Client._requestAsync (/@expo/xdl@57.9.20/src/ApiV2.ts:219:19)
at processTicksAndRejections (internal/process/task_queues.js:97:5) {
code: ‘INTERNAL_SERVER_ERROR’,
details: undefined,
serverStack: undefined,
_isApiError: true
}

Expo CLI 3.21.13 environment info:
System:
OS: macOS 10.15.6
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 12.18.0 - /usr/local/bin/node
npm: 6.14.4 - /usr/local/bin/npm
IDEs:
Android Studio: 4.0 AI-193.6911.18.40.6514223
Xcode: 11.5/11E608c - /usr/bin/xcodebuild
npmPackages:
expo: ^39.0.0 => 39.0.3
react: 16.13.1 => 16.13.1
react-dom: 16.13.1 => 16.13.1
react-native: https://github.com/expo/react-native/archive/sdk-39.0.3.tar.gz => 0.63.2
react-native-web: ~0.13.7 => 0.13.18
react-navigation: ^4.4.0 => 4.4.2
npmGlobalPackages:
expo-cli: 3.21.13

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