expo / expo/eas-cli

Cannot log in to Apple Developer with a federated account

Open
#1,118 17 comments 17 reactions 1 assignee Claimed by @EvanBacon View on GitHub
eas build enhancement
Dominant language
TypeScript
Stars
1.4k
Forks
236
Avg merge
3d 1h
Merged PRs (30d)
91

Description

### Build/Submit details page URL

_No response_

### Summary

When attempting to run an iOS build, I'm prompted to sign in with my Apple Developer account; however, my account is federated so there is no password (I think this is a fairly new Apple ID feature).

I also tried asking the EAS CLI not to sign in and just allow me to populate whatever information is needed manually, but it ends up just asking for my Apple ID password again, at which point I'm stuck.

Here's the output of the sign-in attempt:

```
eas build -p ios main...origin/main
✔ Linked to project @rownd/rownd-sandbox (​https://expo.dev/accounts/rownd/projects/rownd-sandbox​)
Specifying "ios.bundleIdentifier" in app.json is deprecated for bare workflow projects.
EAS Build depends only on the value in the native code. Please remove the deprecated configuration.
✔ 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? … no
No problem! 👌 If any of the next steps will require Apple account access we will ask you again about it.

› Log in to your Apple Developer account to continue
✔ Apple ID: …
› The password is only used to authenticate with Apple and never stored on EAS servers
Learn more: https://bit.ly/2VtGWhU
✔ Password (for mhamann@rownd.io): … *******
› Saving Apple ID password to the local Keychain
Learn more: https://docs.expo.dev/distribution/security#keychain
✖ Logging in...
Authentication with Apple Developer Portal failed!
Failed to set up credentials.
Error: Apple Service Error -22320. Federated Authentication is required
```

### Managed or bare?

bare

### Environment

expo-env-info 1.0.3 environment info:
System:
OS: macOS 12.4
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.10.0 - ~/.nvm/versions/node/v16.10.0/bin/node
Yarn: 1.22.11 - ~/.nvm/versions/node/v18.0.0/bin/yarn
npm: 7.24.0 - ~/.nvm/versions/node/v16.10.0/bin/npm
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.1 AI-211.7628.21.2111.8309675
Xcode: 13.4/13F17a - /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
react-native-web: 0.17.1 => 0.17.1
npmGlobalPackages:
eas-cli: 0.52.0
expo-cli: 5.4.6
Expo Workflow: bare

### Error output

_No response_

### Reproducible demo or steps to reproduce from a blank project

N/A - it's just the CLI

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.