eas-cli icon indicating copy to clipboard operation
eas-cli copied to clipboard

Authentication with Apple Developer Portal failed!

Open quentin-mdn opened this issue 3 years ago • 22 comments

Build/Submit details page URL

No response

Summary

When running eas build -p ios --auto-submit then pressing yes then connecting to my apple account i get the following error

Authentication with Apple Developer Portal failed! You have no team associated with your Apple account, cannot proceed. (Do you have a paid Apple Developer account?)

My account is actually linked to a team with an active paid Apple Developper account, yesterday (2023-04-20) i was able to do the process successfully for the same application.

Managed or bare?

managed

Environment

expo-env-info 1.0.5 environment info: System: OS: Linux 5.10 Debian GNU/Linux 11 (bullseye) 11 (bullseye) Shell: 5.1.4 - /bin/bash Binaries: Node: 18.16.0 - /usr/bin/node Yarn: 1.22.19 - ~/.yarn/bin/yarn npm: 9.5.1 - /usr/bin/npm SDKs: Android SDK: API Levels: 30, 33 Build Tools: 29.0.2, 30.0.3, 31.0.0, 33.0.0 System Images: android-30 | Google APIs ARM 64 v8a, android-30 | Google APIs Intel x86 Atom, android-30 | Google Play Intel x86 Atom npmPackages: expo: ^48.0.0 => 48.0.9 react: 18.2.0 => 18.2.0 react-native: 0.71.6 => 0.71.6 npmGlobalPackages: eas-cli: 3.10.0 expo-cli: 6.3.2 Expo Workflow: managed

Error output

Authentication with Apple Developer Portal failed! You have no team associated with your Apple account, cannot proceed. (Do you have a paid Apple Developer account?) Error: You have no team associated with your Apple account, cannot proceed. (Do you have a paid Apple Developer account?) at r.teams (/usr/lib/node_modules/eas-cli/node_modules/@expo/apple-utils/build/index.js:1:850688) at t.selectTeamAsync (/usr/lib/node_modules/eas-cli/node_modules/@expo/apple-utils/build/index.js:1:851461) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async t.validateSessionAsync (/usr/lib/node_modules/eas-cli/node_modules/@expo/apple-utils/build/index.js:1:738507) at async Object.S [as loginWithUserCredentialsAsync] (/usr/lib/node_modules/eas-cli/node_modules/@expo/apple-utils/build/index.js:1:709939) at async loginWithUserCredentialsAsync (/usr/lib/node_modules/eas-cli/build/credentials/ios/appstore/authenticate.js:84:24) at async loginAsync (/usr/lib/node_modules/eas-cli/build/credentials/ios/appstore/authenticate.js:56:16) at async authenticateAsUserAsync (/usr/lib/node_modules/eas-cli/build/credentials/ios/appstore/authenticate.js:129:27) at async authenticateAsync (/usr/lib/node_modules/eas-cli/build/credentials/ios/appstore/authenticate.js:101:16) at async AppStoreApi.ensureAuthenticatedAsync (/usr/lib/node_modules/eas-cli/build/credentials/ios/appstore/AppStoreApi.js:36:28) Error: build command failed.

Reproducible demo or steps to reproduce from a blank project

eas build --platform ios --profile prod --auto-submit

quentin-mdn avatar Apr 21 '23 15:04 quentin-mdn

I'm having the same issue.

kazuma0129 avatar Apr 22 '23 09:04 kazuma0129

I tried to remove and re-register my apple account from the paid Apple Developer account of my team, the problem still persist

quentin-mdn avatar Apr 24 '23 07:04 quentin-mdn

It actually works when i login directly to the main Apple Developer account (the one that pays the subscription).

My personnal account is linked to the main account with maximum permissions, see below

Capture d’écran du 2023-04-24 11-42-54

quentin-mdn avatar Apr 24 '23 09:04 quentin-mdn

Hi all! I can confirm that Apple is not returning any teams when authenticating with a non-owner subaccount. You should be able to work around this issue:

  1. Using the owner account of a team when building/submitting.
  2. Manually prepare the App Store Connect API key (ASC API), and configure it in eas.json using the ascApiKey* fields. (learn more)

byCedric avatar Apr 24 '23 12:04 byCedric

Thanks for your reply, however this modification impacts pretty negativly our workflow since we have multiple developpers with different permission accounts.

Do you know if this modification is here to stay or if it's a temporary bug ?

This functionnality worked well with subaccounts before 2023-04-20

quentin-mdn avatar Apr 24 '23 15:04 quentin-mdn

Honestly, I can't give you a proper answer. Apple is notorious for randomly changing the API without any announcement or alternatives. It might be helpful to contact Apple directly and see if they can provide a clear answer. We've noticed that Fastlane has similar issues (e.g. this, or that).

One thing that we found that might be related, is the Apple account type. If you have an individual-type account, it seems that no team is returned on the sub-account. But, for organization-type accounts, you can enable something called "Access to Certificates, Identifiers & Profiles" for each account. Some people have reported this in the past (source).

One thing that you could do, to maintain the original workflow as best as you can, is set up the credentials "locally". You should be able to use this on CI as well, but you might need some ways to securely store the important keys (docs).

Will provide updates when we know more!

byCedric avatar Apr 25 '23 13:04 byCedric

I tried to contact Apple because since this change i can't access to the "Certificates, Identifiers & Profiles" page in the AppleStoreConnect from the subaccount.

Looks related because i get the following error message : "Unable to find a team with the given Team ID 'XXXXXXXX' to which you belong. Please contact Apple Developer Program Support. https://developer.apple.com/support"

Following your message, i checked, we have an organisation type account but the "Access to Certificates, Identifiers & Profiles" checkbox doesn't appear in the user param page.

Will provide update when i get the reply from Apple

quentin-mdn avatar Apr 25 '23 13:04 quentin-mdn

Finally got an answer from Apple, both bugs are fixed for me. Looks like they fixed their API

quentin-mdn avatar May 09 '23 07:05 quentin-mdn

I'm still getting this error while trying to build for ios

Authentication with Apple Developer Portal failed! You have no team associated with your Apple account, cannot proceed. (Do you have a paid Apple Developer account?)

Ladvace avatar Apr 19 '24 09:04 Ladvace

The problem comes from Apple API apparently, they fixed the bug several times and it kept reappearing. We basically gave up and everyone on our team use the master Apple Developer Account now

quentin-mdn avatar Apr 19 '24 09:04 quentin-mdn

mmm, I just subscribed to the apple developer as an individual, so I have to check which is my "master account", since it should be mine

Ladvace avatar Apr 19 '24 10:04 Ladvace

got same error.

nicsoid avatar Apr 19 '24 14:04 nicsoid

I updated the package "eas-cli": "^7.8.5", and it works for me

oamado avatar Apr 26 '24 16:04 oamado

it works for me too now

Ladvace avatar Apr 26 '24 22:04 Ladvace

but not for me(

kalashovkerim avatar May 17 '24 15:05 kalashovkerim

The problem comes from Apple API apparently, they fixed the bug several times and it kept reappearing. We basically gave up and everyone on our team use the master Apple Developer Account now

Did you resovled the problem?

kalashovkerim avatar May 17 '24 16:05 kalashovkerim

Any update on this issue? I used my apple account id for the developer portal and had the same problem. 7.8.5 did not work for me.

bymw1990 avatar Jun 09 '24 20:06 bymw1990

Any update on this issue? I used my apple account id for the developer portal and had the same problem. 7.8.5 did not work for me.

I just reported to Apple support and after a few days (in my case a week) the problem has been fixed)

kalashovkerim avatar Jun 09 '24 20:06 kalashovkerim

Thanks for the response - so I take that it had to be resolved at individual bases? I had the impression it was their api issues ... I'll get in touch with the Apple support.

bymw1990 avatar Jun 09 '24 22:06 bymw1990

Same here, I recenlty moved our app from individual account to use our organization and this issue is happening.

JeffShomali avatar Jun 13 '24 17:06 JeffShomali