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

Apple servers indicated Two-factor authentication or Two-step verification are required, but Expo cannot handle the response: [object Object]

Open andokai opened this issue 1 year ago • 2 comments

Build/Submit details page URL

No response

Summary

I can't login to my Apple account for build automation. I suspect it's because I've added a security key to my account.

Managed or bare?

Managed

Environment

expo-env-info 1.0.5 environment info: System: OS: macOS 13.4 Shell: 5.9 - /bin/zsh Binaries: Node: 20.2.0 - ~/Library/Caches/fnm_multishells/24785_1685261232526/bin/node npm: 9.6.6 - ~/Library/Caches/fnm_multishells/24785_1685261232526/bin/npm Watchman: 2023.05.22.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.12.1 - /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4 Android SDK: API Levels: 30, 31, 32, 33 Build Tools: 30.0.3, 32.0.0, 33.0.2 System Images: android-33 | Google APIs ARM 64 v8a, android-33 | Google Play ARM 64 v8a IDEs: Android Studio: 2022.2 AI-222.4459.24.2221.9971841 Xcode: 14.3/14E222b - /usr/bin/xcodebuild npmPackages: expo: ^48.0.17 => 48.0.17 react: 18.2.0 => 18.2.0 react-dom: 18.2.0 => 18.2.0 react-native: 0.71.8 => 0.71.8 react-native-web: ~0.18.10 => 0.18.12 Expo Workflow: managed

✔ Validating global prerequisites versions passed ✔ Checking for incompatible packages passed ✔ Checking for conflicting global packages in project passed ✔ Verifying prebuild support package versions are compatible passed ✔ Checking dependency versions for compatibility with the installed Expo SDK passed ✔ Validating Expo Config passed ✔ Checking package.json for common issues passed

Didn't find any issues with the project!

Error output

Authentication with Apple Developer Portal failed! Failed to set up credentials. Apple servers indicated Two-factor authentication or Two-step verification are required, but Expo cannot handle the response: [object Object] Error: build command failed.

Reproducible demo or steps to reproduce from a blank project

I can't be sure as I don't have an Apple Developer account without a security key, but I suggest trying to use an Apple account with a security key added as a 2FA method.

andokai avatar May 28 '23 08:05 andokai

I've got the same issue after adding a hardware security key to my apple account.

Edit: Duplicate of https://github.com/expo/expo/issues/21277

daniel-xyz avatar Jun 14 '23 09:06 daniel-xyz

Likewise. Same issue, I've had it with OTP code from a second factor app, and now hardware key. This means I can't use the apple account to produce EAS Build if I've setup MFA. App Specific password do not seem to work either. I had to create a separate account without MFA just for EAS Build, this is not great.

tenacioustechie avatar Oct 25 '23 22:10 tenacioustechie