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! #1220

Closed
igorcesarcode opened this issue Jul 19, 2022 · 72 comments
Closed

Authentication with Apple Developer Portal failed! #1220

igorcesarcode opened this issue Jul 19, 2022 · 72 comments
Assignees
Labels
eas build needs review Issue is ready to be reviewed by a maintainer

Comments

@igorcesarcode
Copy link

Build/Submit details page URL

No response

Summary

I'm trying to do my first build on ios with eas.
But I'm having an error when logging in with apple id.

Even putting the code correctly shows an error.

Managed or bare?

Managed

Environment

expo-env-info 1.0.4 environment info:
System:
OS: macOS 12.4
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.15.0 - ~/.nvm/versions/node/v16.15.0/bin/node
Yarn: 1.22.18 - ~/.nvm/versions/node/v16.15.0/bin/yarn
npm: 8.5.5 - ~/.nvm/versions/node/v16.15.0/bin/npm
Watchman: 2022.06.27.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
IDEs:
Android Studio: 2021.2 AI-212.5712.43.2112.8512546
Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
npmPackages:
expo: ~44.0.0 => 44.0.6
react: 17.0.1 => 17.0.1
react-dom: 17.0.1 => 17.0.1
react-native: 0.64.3 => 0.64.3
npmGlobalPackages:
expo-cli: 5.4.6
Expo Workflow: managed

VERSION
eas-cli/0.55.1 darwin-x64 node-v16.15.0

Error output

Authentication with Apple Developer Portal failed! Error: Error Description not available Code: -20528

Reproducible demo or steps to reproduce from a blank project

eas build -p ios --profile production

image

@igorcesarcode igorcesarcode added the needs review Issue is ready to be reviewed by a maintainer label Jul 19, 2022
@wkozyra95
Copy link
Contributor

Was that just a transient issue or do you still experiencing that problem? Maybe try logging in to https://developer.apple.com/ and check if there is no policy change you need to accept. Did you try SMS option to validate the account?

@wkozyra95 wkozyra95 removed the needs review Issue is ready to be reviewed by a maintainer label Jul 21, 2022
@igorcesarcode
Copy link
Author

@wkozyra95

1° Yes I am facing this problem and with that I am unable to create the build.

2° Yes, I went to developer.apple.com and confirmed that there were no changes to the terms

3° Yes, I tried both ways without success.

@dsokal dsokal added needs review Issue is ready to be reviewed by a maintainer eas build labels Aug 12, 2022
@izaakrogan
Copy link

@igorcesarcode did you find a solution? I'm facing the same issue

@igorcesarcode
Copy link
Author

@izaakrogan Yes, I still have this problem, I ended up giving up on launching my app on the apple store, through EAS Build.

I migrated the project to react native cli

@saikrishna6938
Copy link

I got this same issue, I changed my network and it worked for me.

@igorcesarcode
Copy link
Author

For those looking for a solution, in the process the company I work for moved to the app center due to the difficulties of several of our devs not being able to connect to apple.

The tool is wonderful, but the small difficulties made it impossible to work with it.

@dmitryame
Copy link

I'm having this issue today, any resolution from previous failures?

@Sidibedev
Copy link

also having this issue. +1

@dmitryame
Copy link

https://stackoverflow.com/questions/75347609/eas-build-ios-failure-authentication-with-apple-developer-portal-failed/75347883#75347883
There are some reports that it started happening for some people. Looks like expo server side issue...

@kev2010
Copy link

kev2010 commented Feb 4, 2023

+1 Getting this error over and over:

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

@Lamonarch87
Copy link

Me too. Same issue after apple account maintenance.

@Huguet57
Copy link

Huguet57 commented Feb 4, 2023

Same, seems like an Apple's maintenance issue

@neypalma79
Copy link

Hi, is there any solution for this issue? Greetings

@kristianhristov
Copy link

+1

1 similar comment
@PSodor01
Copy link

PSodor01 commented Feb 4, 2023

+1

@Lamonarch87
Copy link

#1672 this issue is open. Report there.

@imarc7
Copy link

imarc7 commented Feb 4, 2023

Having the same issue

@addeelnayyer
Copy link

Build worked perfect 4 hours ago. Now it is showing this error:

image

@BerkeAras
Copy link

Same issue

@fipster-dev
Copy link

+1 Same issue here

@nickreese
Copy link

Same issue

@isabellahoch
Copy link

having the same issue!

@timlangner
Copy link

Same here! I was able to build my app using EAS by selecting "No" for the "Do you want to log in to your Apple account?" question but submitting to the App Store is not possible right with this issue.

@gharker
Copy link

gharker commented Feb 4, 2023

I'm having the same issue.

@fipster-dev
Copy link

fipster-dev commented Feb 5, 2023

Some work arounds also discussed in this open eas-cli issue

#1672

I can confirm that the hack here worked for me with eas build.

I've not tried eas submit yet though

@ycaptain
Copy link

ycaptain commented Feb 5, 2023

Some work arounds also discussed in this open eas-cli issue

#1672

I can confirm that the hack here worked for me with eas build.

I've not tried eas submit yet though

Worked for me, thank you!

@Sidibedev
Copy link

I was able to build and submit it by pressing no when asking Do you want to log in to your Apple account?

@clarkology56
Copy link

This worked for me - I chose to not sign into my apple account for the build. Then I downloaded the build from expo and submitted it via transporter to apple app store

@lucidprojects
Copy link

lucidprojects commented Feb 5, 2023

Also confirmed configuring appleId and ascAppId in eas.json makes it work as well. as detailed here

"submit": {
    "production": {
      "ios": {
        "appleId": "[email protected]",
        "ascAppId": "[Apple ID]"
      }
    }
  }

@timlangner
Copy link

Also confirmed configuring appleId and ascAppId in eas.json makes it work as well. as detailed here

"submit": {
    "production": {
      "ios": {
        "appleId": "[email protected]",
        "ascAppId": "[Apple ID]"
      }
    }
  }

This works for me & is a good workaround for now. Don't forget to still select "No" when being asked if you want to log into your apple account.

@ornakash
Copy link

ornakash commented Feb 5, 2023

This is now fixed by the expo team. In order for it to work, all you have to do is update to the latest eas-cli. This should do it:

npm i -g eas-cli
Then build or submit you application to iOS.

eas build --platform ios --auto-submit
Of course you can ignore the --auto-submit.

@danielricecodes
Copy link

danielricecodes commented Feb 9, 2023

Upgrading eas-cli fixed it for me.

yarn global add eas-cli

I had to add this to app.json but after that, the build finished just fine.

"extra": {
  "eas": {
    "projectId": "<<MY PROJECT ID>>"
  }
},

@ErnestCodes
Copy link

upgrade the eas-cli. That should solve the problem

@jeltehomminga
Copy link

would be helpful it was showed in the error that it's needed to upgrade the eas-cli

@ErionTp
Copy link

ErionTp commented Feb 15, 2023

My problem was resolved by upgrading eas-cli: npm install -g eas-cli

@KeaganStevens
Copy link

I have the same problem ,but I get a different error on the latest update.

Authentication with Apple Developer Portal failed!
Error: Apple Service Error -36607. Unable to sign you in to your Apple ID. Try again later. Learn more. Opens in a new window.

After retrying a few times yesterday and today, I logged onto appstore connect on my browser, and was then asked to recover my account. So I went through the process and changed my password. Tried EAS build again and still failed.
I have not tried the hack in #1672 .

EAS Version: eas-cli/3.6.1 win32-x64 node-v16.9.1

@MaxAst
Copy link

MaxAst commented Feb 23, 2023

got the same issue as @KeaganStevens since today:

✖ Logging in...
Authentication with Apple Developer Portal failed!
    Error: Apple Service Error -36607. Unable to sign you in to your Apple ID. Try again later. <a target="_blank" 
    href="https://support.apple.com/kb/HT212522 ">Learn more.<span class="sr-only"> Opens in a new window.</span></a>

after getting the error, I do get the Apple ID verification code prompt on my apple devices though, so it might be that the CLI is not able to handle cases where 2fa is required.

eas-cli/3.6.1 darwin-arm64 node-v18.12.1

@jan-karnik
Copy link

Got it working by installing the new 3.7.0 version. Now it prompts you for the 2fa code

eas-cli/3.7.0 darwin-arm64 node-v16.15.0

@67millwood
Copy link

67millwood commented Feb 23, 2023

got the same issue as @KeaganStevens since today:

✖ Logging in...
Authentication with Apple Developer Portal failed!
    Error: Apple Service Error -36607. Unable to sign you in to your Apple ID. Try again later. <a target="_blank" 
    href="https://support.apple.com/kb/HT212522 ">Learn more.<span class="sr-only"> Opens in a new window.</span></a>

after getting the error, I do get the Apple ID verification code prompt on my apple devices though, so it might be that the CLI is not able to handle cases where 2fa is required.

eas-cli/3.6.1 darwin-arm64 node-v18.12.1

also cannot get it to work today. tried eas-cli 3.5.2....tried 3.7....no dice. reset keychain...trusted devices fire up a 2fa code but the terminal has crashed out so cannot enter it anywhere. also the 2fa prompt is showing 'null null' above the 6 digit code...if that means something to someone out there.

@jpatricksweeney
Copy link

jpatricksweeney commented Feb 23, 2023

I'm getting the same error as @KeaganStevens

eas-cli/3.7.0 darwin-arm64 node-v16.13.1

@cdosborn
Copy link

See this issue for updates: #1714

@kenorvick
Copy link

I am working with an old expo project but was able to get everything working using the following to build an ipa:

  1. (Not sure if needed but is what I did on the final success) Removed and re-added all files within: /Users/{yourusername}/.app-store/auth/
  2. With latest version of eas-cli: eas credentials
  3. Selected no when asked to log into apple developer account
  4. Select Manage everything needed to build your project
  5. Select All: Set up all the required credentials to build your project
  6. When prompted to log into apple account, now log in
  7. Generate all new certificates and provisioning profiles
  8. Now run eas build -p ios

Hope this helps. I went through all previous suggestions before such as changing ignoreErrors:true shown above in a previous thread so it could have been a combination

@patrinoua
Copy link

Running everything @kenorvick suggested resolved the issue for me.

The cookies were expired and the provisional profile so
eas credentials was the magic command to renew them.

Thanks!

@monkeyK1n9
Copy link

I had the same issue and eas could not even identify my developer team. Deleting the cookie file solved the issue. I was prompt to login again at the build/submit and it worked fine.

@paulosabayomi
Copy link

I had the same issue and I fixed it after I downgraded node to the latest LTS version - currently version 18

@DaatKruby
Copy link

I'm having this issue

@paulosabayomi
Copy link

@DaatKruby I had the same issue and it was because of my node version, if you are using a PC that supports nvm

first check your node version if it is higher that version 18, downgrade it to version 18 using nvm use v18.x.x command and you could also choose a lower version than version 18.x.x

@ghost
Copy link

ghost commented Jan 12, 2024

Personally, I was using SSH through a VPN. Instead i went on the Mac and used "eas credentials" there, and it worked.

So i guess turn off your VPN and SSH.

@dolapo-oluremi
Copy link

Also confirmed configuring appleId and ascAppId in eas.json makes it work as well. as detailed here

"submit": {
    "production": {
      "ios": {
        "appleId": "[email protected]",
        "ascAppId": "[Apple ID]"
      }
    }
  }

works!

@Noitidart
Copy link

Thanks @dolapo-oluremi that worked for me too!

@MarkPopovich
Copy link

Had this problem today.

After trying many of the options here, it turned out to be due to the fact that I was ssh'ed into my macbook pro via my windows desktop.

After trying the exact same build command on directly on my macbook, 2FA kicked in and I was able to log in and start the build immediately.

@michel-reyes
Copy link

After try all the solutions provided here and more, I ended up:

  • create anew user profile on my Mac and that works
  • I tracked the keys added to my Mac keychain
  • I returned to my previous user (the one with the issue)
  • Go to Mac keychain app
  • search for this terms and delete the entries
    • (private and public key)
    • handoff-own-encryption-key
    • deliver.[your Apple ID here]
  • Go to Terminal and continue using that command that fail, should work

@lewisdonovan
Copy link

Updating eas-cli and restarting my machine worked for me 🤷🏻‍♂️

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

No branches or pull requests