expo / eas-cli

Fastest way to build, submit, and update iOS and Android apps
https://docs.expo.dev/eas/
MIT License
749 stars 79 forks source link

Apple 2FA codes received by phone call don't work #1725

Open hypersundays opened 1 year ago

hypersundays commented 1 year ago

Build/Submit details page URL

No response

Summary

Your Apple account should be giving you 2FA codes by phone call

  1. Try to start a build that requires your Apple credentials (App Store build in my case)
  2. Log in with your password (type it in or get it from your keychain)
  3. You'll be asked to enter a 2FA. Apple will call and give it to you. Enter it
  4. eas-cli will say Invalid Code

Tried this more than a few times and finally just tried to get Apple to give me codes via SMS. Once I switched to SMS, everything worked as expected.

Managed or bare?

Bare

Environment

System: OS: macOS 13.1 Shell: 5.8.1 - /bin/zsh Binaries: Node: 16.18.1 - ~/.nvm/versions/node/v16.18.1/bin/node npm: 8.19.2 - ~/.nvm/versions/node/v16.18.1/bin/npm Managers: CocoaPods: 1.11.3 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1 IDEs: Android Studio: 2021.3 AI-213.7172.25.2113.9123335 Xcode: 14.2/14C18 - /usr/bin/xcodebuild npmPackages: expo: ~46.0.19 => 46.0.19 react: 18.0.0 => 18.0.0 react-dom: 18.0.0 => 18.0.0 react-native: 0.69.6 => 0.69.6 react-native-web: ~0.18.7 => 0.18.10 npmGlobalPackages: eas-cli: 3.7.2 expo-cli: 6.0.8 Expo Workflow: bare

Error output

No response

Reproducible demo or steps to reproduce from a blank project

No demo needed

andresespinosapc commented 1 year ago

How did you manage to change your 2FA method from phone call to SMS?

hypersundays commented 1 year ago

@andresespinosapc sorry just saw the comment now.

It was tedious. There's no explicit way to do it but it was something along the lines of logging into my Apple account and asking them to send my 2FA code another way. The last method you used is the one they'll continue using afairc

SippinOnJuiceBox commented 1 month ago

Just an FYI for anyone with this issue, Apple defaults to SMS if you are already on a phone call. All you really have to do it log in through the CLI while you are on a phone call and it should work.