expo / eas-cli

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

Can't login with Apple ID during build process #2254

Open PawelGIX opened 8 months ago

PawelGIX commented 8 months ago

Summary

I haven't been able to log in to my Apple ID from Expo since yesterday. However, logging in to Apple Connect from the browser works properly.

How to solve the problem?

✔ 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: … Marcin@ar-range.app
› The password is only used to authenticate with Apple and never stored on EAS servers
  Learn more
✔ Password (for Marcin@ar-range.app): … *************
› Saving Apple ID password to the local Keychain
  Learn more
✖ Logging in...
Invalid username and password combination. Used 'Marcin@ar-range.app' as the username.
› Removed Apple ID password from the native Keychain
? Would you like to try again? › no / yes

What platform(s) does this occur on?

MacBook M1

SDK Version

50.0.7

Environment

  expo-env-info 1.2.0 environment info:
    System:
      OS: macOS 13.6.3
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 18.18.0 - ~/.nvm/versions/node/v18.18.0/bin/node
      Yarn: 1.22.21 - /opt/homebrew/bin/yarn
      npm: 9.8.1 - ~/.nvm/versions/node/v18.18.0/bin/npm
    Managers:
      CocoaPods: 1.14.3 - /opt/homebrew/bin/pod
    SDKs:
      iOS SDK:
        Platforms: DriverKit 23.2, iOS 17.2, macOS 14.2, tvOS 17.2, visionOS 1.0, watchOS 10.2
      Android SDK:
        API Levels: 23, 28, 33, 33
        Build Tools: 30.0.3, 33.0.2, 34.0.0
        System Images: android-28 | Google APIs ARM 64 v8a, android-28 | Google ARM64-V8a Play ARM 64 v8a, android-29 | Google APIs ARM 64 v8a
    IDEs:
      Android Studio: 2022.3 AI-223.8836.35.2231.10811636
      Xcode: 15.2/15C500b - /usr/bin/xcodebuild
    npmPackages:
      expo: ^50.0.7 => 50.0.7 
      react: 18.2.0 => 18.2.0 
      react-native: 0.73.4 => 0.73.4 
    npmGlobalPackages:
      eas-cli: 7.3.0
      expo-cli: 6.3.10
    Expo Workflow: bare

Minimal reproducible example

This is not likely to be a code-specific problem. More with the CLI and login process.

https://github.com/PawelGIX/GrillParadisePOS-test

Is there any way to debug this issue?

PawelGIX commented 8 months ago

Is there anything I can do? Don't know where to start? Should I install packages and configure the build process from scratch, even though I haven't had any problems with it so far?

ferasdiab commented 8 months ago

Did you find any solution?

PawelGIX commented 8 months ago

Did you find any solution? I wasn't able to log in after updating the packages.

I discovered that CLI ignores my input:

image

And it took the login data from this file with a strange character at the beginning.

image

image

After deleting the contents of this directory, I was able to log in.

expo-bot commented 8 months ago

Thank you for filing this issue! This comment acknowledges we believe this may be a bug and there’s enough information to investigate it. However, we can’t promise any sort of timeline for resolution. We prioritize issues based on severity, breadth of impact, and alignment with our roadmap. If you’d like to help move it more quickly, you can continue to investigate it more deeply and/or you can open a pull request that fixes the cause.

textual commented 8 months ago

I am having a similar issue with eas-cli failing at apple login. i cannot seem to get eas-cli to update past 3.10

`eas -v
★ eas-cli@7.3.0 is now available. To upgrade, run npm install -g eas-cli. Proceeding with outdated version.

eas-cli/3.10.2 darwin-arm64 node-v21.6.2`

textual commented 4 months ago

I thnk my issues were related to my version of node / eas cli. perhaps v20 was the one that worked for me

On Mon, Jul 15, 2024 at 10:36 AM Laurent Schaffner @.***> wrote:

This is the first time I try to aes build --platform ios and this fails despite having correct credentials for Apple. There's definitely something fishy with this.

Invalid username and password combination.

I checked the file you talk about and it's automatically written with the right username (Apple ID) when I run the CLI. I tried removing it without success.

— Reply to this email directly, view it on GitHub https://github.com/expo/eas-cli/issues/2254#issuecomment-2229040773, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABENKARIJT7G5ZMQBJWODDZMQCBZAVCNFSM6AAAAABD3G2NQCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRZGA2DANZXGM . You are receiving this because you commented.Message ID: @.***>

krzysiek-mc commented 3 weeks ago

Did you find any solution? I wasn't able to log in after updating the packages.

I discovered that CLI ignores my input: image And it took the login data from this file with a strange character at the beginning.

image

image

After deleting the contents of this directory, I was able to log in.

I didn't have the Archive directory, I just opened username.json, removed \u0017, saved file, and I was able to login again.