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

Apple Authentication error running "eas build" and selecting phone number for 2FA #2738

Closed
GhostbusterJeffrey opened this issue Dec 3, 2024 · 2 comments
Labels
needs review Issue is ready to be reviewed by a maintainer

Comments

@GhostbusterJeffrey
Copy link

Build/Submit details page URL

No response

Summary

I am currently attempting to build an iOS App using the EAS CLI. After attempting to run the commands eas build -p ios on both macOS or Linux, or eas build -p ios --local on macOS, I am met with the same command output each time:

✔ 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: … *********@gmail.com
› Restoring session /Users/****/cookie
› Session expired Local session
› Using password for ********@gmail.com from your local Keychain
  Learn more
✔ Logged in, verify your Apple account to continue
Two-factor Authentication (6 digit code) is enabled for ********@gmail.com. Learn more: https://support.apple.com/en-us/HT204915

✔ Please select a trusted phone number to send code to › +1 (•••) •••-••**

Internal Server Error: 'h', 'Received an internal server error from Apple's App Store Connect / Developer Portal servers, please try again later'. Retrying after 3 seconds (remaining: 3)

✖ 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.

I am currently using Expo 52 and eas-cli 13.4.2. This has been going on for over a day and I believe it may be due to an API endpoint changing.

What platform(s) does this occur on?

iOS

SDK Version

52

Environment

expo-env-info 1.2.1 environment info:
    System:
      OS: macOS 15.1.1
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 21.7.1 - /opt/homebrew/bin/node
      Yarn: 1.22.19 - /opt/homebrew/bin/yarn
      npm: 10.5.0 - /opt/homebrew/bin/npm
      Watchman: 2024.09.30.00 - /opt/homebrew/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: DriverKit 24.1, iOS 18.1, macOS 15.1, tvOS 18.1, visionOS 2.1, watchOS 11.1
      Android SDK:
        API Levels: 30, 32, 33, 34
        Build Tools: 30.0.3, 33.0.0, 33.0.1, 34.0.0
        System Images: android-33 | Google Play ARM 64 v8a
    IDEs:
      Android Studio: 2022.3 AI-223.8836.35.2231.10811636
      Xcode: 16.1/16B40 - /usr/bin/xcodebuild
    npmPackages:
      expo: ^52.0.8 => 52.0.8 
      react: 18.3.1 => 18.3.1 
      react-native: ^0.76.2 => 0.76.2 
    npmGlobalPackages:
      eas-cli: 13.4.2
      expo-cli: 6.3.10
    Expo Workflow: managed

Running theeas build -p ios command and selecting a phone number for 2FA when prompted to log into an Apple account.

Managed or bare?

Managed

Environment

expo-env-info 1.2.1 environment info:
System:
OS: macOS 15.1.1
Shell: 5.9 - /bin/zsh
Binaries:
Node: 21.7.1 - /opt/homebrew/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 10.5.0 - /opt/homebrew/bin/npm
Watchman: 2024.09.30.00 - /opt/homebrew/bin/watchman
SDKs:
iOS SDK:
Platforms: DriverKit 24.1, iOS 18.1, macOS 15.1, tvOS 18.1, visionOS 2.1, watchOS 11.1
Android SDK:
API Levels: 30, 32, 33, 34
Build Tools: 30.0.3, 33.0.0, 33.0.1, 34.0.0
System Images: android-33 | Google Play ARM 64 v8a
IDEs:
Android Studio: 2022.3 AI-223.8836.35.2231.10811636
Xcode: 16.1/16B40 - /usr/bin/xcodebuild
npmPackages:
expo: ^52.0.8 => 52.0.8
react: 18.3.1 => 18.3.1
react-native: ^0.76.2 => 0.76.2
npmGlobalPackages:
eas-cli: 13.4.2
expo-cli: 6.3.10
Expo Workflow: managed

Error output

No response

Reproducible demo or steps to reproduce from a blank project

Running theeas build -p ios command and selecting a phone number for 2FA when prompted to log into an Apple account.

@GhostbusterJeffrey GhostbusterJeffrey added the needs review Issue is ready to be reviewed by a maintainer label Dec 3, 2024
@JavaScriptJohn
Copy link

Same issue on my end.

@szdziedzic
Copy link
Member

Hey, It seems like a duplicate of #2698. Let's track it in a single place.

Can you check if using #2698 (comment) works?

It seems like using EXPO_NO_KEYCHAIN=1 works for some folks, can you check if it works for you?

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

No branches or pull requests

3 participants