Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication with Apple Developer Portal failed! #2224

Closed
ekorman opened this issue Feb 10, 2024 · 97 comments
Closed

Authentication with Apple Developer Portal failed! #2224

ekorman opened this issue Feb 10, 2024 · 97 comments
Labels
issue accepted needs review Issue is ready to be reviewed by a maintainer

Comments

@ekorman
Copy link

ekorman commented Feb 10, 2024

Build/Submit details page URL

No response

Summary

I get the error

Authentication with Apple Developer Portal failed!
Cookie not in this host's domain. Cookie:developer-mdn.apple.com Request:developer.apple.com
    Error: build command failed.

when running eas build --profile preview --platform ios. this command worked successfully a few days ago

Managed or bare?

managed

Environment

  expo-env-info 1.2.0 environment info:
    System:
      OS: macOS 14.2.1
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 16.20.0 - ~/.nvm/versions/node/v16.20.0/bin/node
      Yarn: 1.22.19 - ~/.nvm/versions/node/v16.20.0/bin/yarn
      npm: 8.19.4 - ~/.nvm/versions/node/v16.20.0/bin/npm
      Watchman: 2023.10.30.00 - /opt/homebrew/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: DriverKit 23.2, iOS 17.2, macOS 14.2, tvOS 17.2, visionOS 1.0, watchOS 10.2
    IDEs:
      Xcode: 15.2/15C500b - /usr/bin/xcodebuild
    npmPackages:
      @expo/webpack-config: ^19.0.0 => 19.0.0 
      expo: ~49.0.15 => 49.0.18 
      react: 18.2.0 => 18.2.0 
      react-dom: 18.2.0 => 18.2.0 
      react-native: 0.72.6 => 0.72.6 
      react-native-web: ~0.19.6 => 0.19.9 
    npmGlobalPackages:
      eas-cli: 7.1.3
    Expo Workflow: managed
✔ Check Expo config for common issues
✔ Check package.json for common issues
✔ Check dependencies for packages that should not be installed directly
✔ Check for common project setup issues
✔ Check for issues with metro config
✔ Check npm/ yarn versions
✔ Check Expo config (app.json/ app.config.js) schema
✔ Check that packages match versions required by installed Expo SDK
✔ Check for legacy global CLI installed locally
✔ Check that native modules do not use incompatible support packages
✔ Check that native modules use compatible support package versions for installed Expo SDK

Didn't find any issues with the project!

Error output

Authentication with Apple Developer Portal failed!
Cookie not in this host's domain. Cookie:developer-mdn.apple.com Request:developer.apple.com
Error: Cookie not in this host's domain. Cookie:developer-mdn.apple.com Request:developer.apple.com
    at M.setCookie (/Users/eric/.nvm/versions/node/v16.20.0/lib/node_modules/eas-cli/node_modules/@expo/apple-utils/build/index.js:1:927590)
    at M.setCookie (/Users/eric/.nvm/versions/node/v16.20.0/lib/node_modules/eas-cli/node_modules/@expo/apple-utils/build/index.js:1:697286)
    at /Users/eric/.nvm/versions/node/v16.20.0/lib/node_modules/eas-cli/node_modules/@expo/apple-utils/build/index.js:1:894766
    at new Promise (<anonymous>)
    at /Users/eric/.nvm/versions/node/v16.20.0/lib/node_modules/eas-cli/node_modules/@expo/apple-utils/build/index.js:1:894571
    at Object.apply (/Users/eric/.nvm/versions/node/v16.20.0/lib/node_modules/eas-cli/node_modules/@expo/apple-utils/build/index.js:1:895502)
    at /Users/eric/.nvm/versions/node/v16.20.0/lib/node_modules/eas-cli/node_modules/@expo/apple-utils/build/index.js:1:868909
    at Array.forEach (<anonymous>)
    at c (/Users/eric/.nvm/versions/node/v16.20.0/lib/node_modules/eas-cli/node_modules/@expo/apple-utils/build/index.js:1:868881)
    at /Users/eric/.nvm/versions/node/v16.20.0/lib/node_modules/eas-cli/node_modules/@expo/apple-utils/build/index.js:1:867223
    Error: build command failed.

Reproducible demo or steps to reproduce from a blank project

Run

eas build --profile preview --platform ios
@ekorman ekorman added the needs review Issue is ready to be reviewed by a maintainer label Feb 10, 2024
@Niravpatel129
Copy link

+1 having this issue too

@alantvu
Copy link

alantvu commented Feb 10, 2024

also having this issue

@baristikir
Copy link

I'm facing the same issue stated here, builds for ios platform were working fine a few days ago but are breaking today all of sudden...

@mthomas100
Copy link

Suddenly having this issue too when running eas build --profile development --platform ios

@vbpns
Copy link

vbpns commented Feb 10, 2024

+1

@afsadilson
Copy link

++1

@frechg
Copy link

frechg commented Feb 10, 2024

+1, Building with no issues yesterday.

@diegosilvadigital
Copy link

diegosilvadigital commented Feb 10, 2024

+1

@timohaver
Copy link

+1

EAS CLI 7.1.3 environment info:
    System:
      OS: macOS 14.3.1
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 20.11.0 - ~/.nvm/versions/node/v20.11.0/bin/node
      npm: 10.4.0 - ~/.nvm/versions/node/v20.11.0/bin/npm
    Utilities:
      Git: 2.39.3 - /usr/bin/git
    npmPackages:
      expo: ~50.0.5 => 50.0.6 
      expo-dev-client: ~3.3.8 => 3.3.8 
      react: 18.2.0 => 18.2.0 
      react-native: 0.73.4 => 0.73.4 
    npmGlobalPackages:
      eas-cli: 7.1.3
    Project workflow: managed

@Jonatthu
Copy link

Same here with latest eas-cli

@AmitayCohen1
Copy link

Same

@strbavaclav
Copy link

+1

@hassanzeaiter
Copy link

Same

1 similar comment
@awwbaw3
Copy link

awwbaw3 commented Feb 10, 2024

Same

@mikeRChambers610
Copy link

+1

1 similar comment
@lukas-sitkauskas
Copy link

+1

@vitor-rmcosta
Copy link

Same here

@MaheshtheDev
Copy link

I am facing same issue too all of the sudden!

@danielgolan
Copy link

+1

@meerbex
Copy link

meerbex commented Feb 10, 2024

Having the same issue,
There was no issue yesterday, it appeared today only!!

@druckhead
Copy link

Having the same issue

@export-mike
Copy link

same here +1

@MariuzM
Copy link

MariuzM commented Feb 11, 2024

Same, was working fine 2 days ago
eas-cli/7.1.3 darwin-arm64 node-v20.11.0

So looks like nothing works when you need to build either in preview or production, once it needs that communication with apple error comes up. Feels like Apple changed something because older versions of eas is same issue.

@expo-bot
Copy link
Contributor

Thank you for filing this issue!
This comment acknowledges we believe this may be a bug and there’s enough information to investigate it.
However, we can’t promise any sort of timeline for resolution. We prioritize issues based on severity, breadth of impact, and alignment with our roadmap. If you’d like to help move it more quickly, you can continue to investigate it more deeply and/or you can open a pull request that fixes the cause.

@brentvatne
Copy link
Member

thanks, we will investigate this.

you can use eas build --non-interactive to skip the apple auth prompt and used stored app signing credentials to work around this issue for now.

i'll lock the issue for now so that this comment is easily discoverable, and we'll follow up shortly.

@expo expo locked and limited conversation to collaborators Feb 11, 2024
@AnhTP-Corize
Copy link

Reinstall eas-cli worked for me

npm uninstall -g eas-cli
npm install -g eas-cli

@woz6622
Copy link

woz6622 commented Feb 18, 2024

worked again with eas-cli 7.2.0

@VicOrlands
Copy link

Reinstall eas-cli worked for me

npm uninstall -g eas-cli
npm install -g eas-cli

This solved it for me.

@davidthornton
Copy link

davidthornton commented Feb 19, 2024

Absolute legends (npm uninstall, npm install; however this did cost me 3 identical Android builds 😂)

@nabn
Copy link

nabn commented Feb 19, 2024

npx setup-safari still not working on my end. Can anyone check for me?

@rahulraoe
Copy link

npm install -g eas-cli
Run this and the cli will be upgraded to 7.3 and that will fix the issue.

@maxsl89
Copy link

maxsl89 commented Feb 19, 2024

npm install -g eas-cli

helped!

@Peek-A-Booo
Copy link

I was getting the same error. I ran npm install -g eas-cli and that fixed the issue

Thanks!

@emrahyurttutan
Copy link

thanks, we will investigate this.

you can use eas build --non-interactive to skip the apple auth prompt and used stored app signing credentials to work around this issue for now.

i'll lock the issue for now so that this comment is easily discoverable, and we'll follow up shortly.

Thanks! @brentvatne @maufernandezdev

@Rico00121
Copy link

thanks, we will investigate this.
you can use eas build --non-interactive to skip the apple auth prompt and used stored app signing credentials to work around this issue for now.
i'll lock the issue for now so that this comment is easily discoverable, and we'll follow up shortly.

Thanks! @brentvatne @maufernandezdev

This worked for me! thanks! plz fix this bug ASAP : )

@ahmdshrif
Copy link

npm uninstall -g eas-cli
npm install -g eas-cli

this is work for me .

@123epsilon
Copy link

Running npm install -g eas-cli worked for me, does anyone know why this occurs?

@w8ze-devel
Copy link

Uninstalling & re installing eas-cli (thus installing version 7.3) worked for me too.

@bitcoinbrisbane
Copy link

i fixed by updating eas.json

nvm use 18.17.1
npm install -g eas-cli
{
  "cli": {
    "version": "7.3.0"
  },

@pradelkai
Copy link

Updating the cli is confirmed working on my end.

@iAhtasham
Copy link

iAhtasham commented Mar 9, 2024

I am still getting this error on version eas cli 7.3.0,
Authentication with Apple Developer Portal failed!
Apple provided the following error info:
Service not available because of maintenance activities, please try again after some time.
Error: build command failed.

I am still facing the same issue on eas-cli/7.3.0

PS D:\Projects\React Native> eas --version
eas-cli/7.3.0 win32-x64 node-v18.15.0
PS D:\Projects\React Native> eas build --profile production --platform ios
Loaded "env" configuration for the "production" profile: no environment variables specified. Learn more: https://docs.expo.dev/build-reference/variables/
√ Using remote iOS credentials (Expo server)

If you provide your Apple account credentials we will be able to generate all necessary build credentials and fully validate them.
This is optional, but without Apple account access you will need to provide all the missing values manually and we can only run minimal validation on them.
√ Do you want to log in to your Apple account? ... yes

› Log in to your Apple Developer account to continue
√ Apple ID: ... *************
› Restoring session C:\Users*.app-store\auth*******\cookie
› Session expired Local session
› The password is only used to authenticate with Apple and never stored on EAS servers
Learn more: https://bit.ly/2VtGWhU
√ Password (for ************): ... ***************
› Saving Apple ID password to the local Keychain
Learn more: https://docs.expo.dev/distribution/security#keychain
√ Logged in New session
Authentication with Apple Developer Portal failed!
Apple provided the following error info:
Service not available because of maintenance activities, please try again after some time.
Error: build command failed.

@sendaimono
Copy link

I am still getting this error on version eas cli 7.3.0, Authentication with Apple Developer Portal failed! Apple provided the following error info: Service not available because of maintenance activities, please try again after some time. Error: build command failed.

I am still facing the same issue on eas-cli/7.3.0

PS D:\Projects\React Native> eas --version eas-cli/7.3.0 win32-x64 node-v18.15.0 PS D:\Projects\React Native> eas build --profile production --platform ios Loaded "env" configuration for the "production" profile: no environment variables specified. Learn more: https://docs.expo.dev/build-reference/variables/ √ Using remote iOS credentials (Expo server)

If you provide your Apple account credentials we will be able to generate all necessary build credentials and fully validate them. This is optional, but without Apple account access you will need to provide all the missing values manually and we can only run minimal validation on them. √ Do you want to log in to your Apple account? ... yes

› Log in to your Apple Developer account to continue √ Apple ID: ... ************* › Restoring session C:\Users***.app-store\auth*********\cookie › Session expired Local session › The password is only used to authenticate with Apple and never stored on EAS servers Learn more: https://bit.ly/2VtGWhU √ Password (for ************): ... *************** › Saving Apple ID password to the local Keychain Learn more: https://docs.expo.dev/distribution/security#keychain √ Logged in New session Authentication with Apple Developer Portal failed! Apple provided the following error info: Service not available because of maintenance activities, please try again after some time. Error: build command failed.

upgrade to 7.5.0

@Ty-HA
Copy link

Ty-HA commented Mar 29, 2024

Hello
I got exactly same problem and I can't upgrade to eas 7.6.2, even after uninstall it, I did these
npm uninstall -g eas-cli
npm cache clean --force
npm install -g eas-cli

But I always got these:
$ eas --version
[email protected] is now available.
To upgrade, run npm install -g eas-cli.
Proceeding with outdated version.

eas-cli/7.3.0 win32-x64 node-v18.17.1

I am stucked with 7.3.0 why ?

I can't build ios "Authentication with Apple Developer Portal failed! Apple provided the following error info: Service not available because of maintenance activities, please try again after some time. Error: build command failed."

@jadbadran
Copy link

Hi guys, I had the same issue, and the only thing that made it work (in my scenario) was doing eas login and logging in my Expo account before logging in my Apple Developer Account on eas build --profile preview --platform ios or in my case, it was eas device:create. Hope it worked on your ends. Good luck!

@ismoiliy98
Copy link

Version: 12.5.3
Getting the same issue.

✖ Logging in...
Authentication with Apple Developer Portal failed!
Received an internal server error from Apple's App Store Connect / Developer Portal servers, please try again later
    Error: build command failed.

Why does this error happen? Is it on Apple's side or Expo? Isn't there a way to fix it so it will not happen again in new versions?

@guifischer
Copy link

Version: 12.5.3

Same issue here. Any ideas how to fix it? Happening on build and submit for Apple

@affcue25
Copy link

Same issue Im receiving since today. It was working fine before.

Authentication with Apple Developer Portal failed! Received an internal server error from Apple's App Store Connect / Developer Portal servers, please try again later Error: build command failed.

@AroundTheWorld131
Copy link

AroundTheWorld131 commented Oct 18, 2024

Facing the same problem! [email protected]

EDIT:
This works for me(skips the apple auth prompt): eas build -p ios --non-interactive

@billysyt
Copy link

Received an internal server error from Apple's App Store Connect / Developer Portal servers, please try again later
Error: build command failed.

I keep reverting my code and tried so much still no luck. It's in a sudden.

@Jean-EmmanuelP
Copy link

+1

@Zakisb
Copy link

Zakisb commented Oct 20, 2024

Still same issue !

@bhappen
Copy link

bhappen commented Oct 21, 2024

Same issue was occurring on eas build --platform ios as well as eas submit --platform ios. Updated to [email protected] and issue is resolved. Try running npm i -g eas-cli

@CllDMR-ekonobi
Copy link

CllDMR-ekonobi commented Oct 22, 2024

Same issue was occurring on eas build --platform ios as well as eas submit --platform ios. Updated to [email protected] and issue is resolved. Try running npm i -g eas-cli

Worked for me. Thanks @bhappen

+UP

@Seanmclem
Copy link

the current recommendation is to use npx eas, not install eas-cli. Or do I have that wrong

@lucksp
Copy link

lucksp commented Dec 12, 2024

the current recommendation is to use npx eas, not install eas-cli. Or do I have that wrong

This is the only solution that worked for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue accepted needs review Issue is ready to be reviewed by a maintainer
Projects
None yet
Development

No branches or pull requests