Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

expo upload:ios asks for app-specific password twice #1473

Closed
glennreyes opened this issue Jan 23, 2020 · 9 comments
Closed

expo upload:ios asks for app-specific password twice #1473

glennreyes opened this issue Jan 23, 2020 · 9 comments
Labels
🔐 Credentials Provisioning profiles and apple developer auth expo upload Pertains to the command expo upload Fastlane Regarding the Fastlane/Ruby integration

Comments

@glennreyes
Copy link
Contributor

Description

When running expo upload:ios, the CLI asks for the app-specific password twice until the upload actually starts.

Expected Behavior

  • Run expo upload:ios
  • Error: [Transporter Error Output]: Sign in with the app-specific password you generated. If you forgot the app-specific password or need to create a new one, go to appleid.apple.com (-22938)
  • Enter for app-specific password
  • Start upload

Observed Behavior

  • Run expo upload:ios
  • Error: [Transporter Error Output]: Sign in with the app-specific password you generated. If you forgot the app-specific password or need to create a new one, go to appleid.apple.com (-22938)
  • Enter for app-specific password
  • Error: [Transporter Error Output]: Sign in with the app-specific password you generated. If you forgot the app-specific password or need to create a new one, go to appleid.apple.com (-22938)
  • Enter for app-specific password
  • Start upload

Full log:

[15:57:57]: Login successful
[15:57:58]: Ready to upload new build to TestFlight (App: 000000000)...
[15:58:12]: [Transporter Error Output]: Sign in with the app-specific password you generated. If you forgot the app-specific password or need to create a new one, go to appleid.apple.com (-22938)
[15:58:12]: Transporter transfer failed.
[15:58:12]: 
[15:58:12]: Sign in with the app-specific password you generated. If you forgot the app-specific password or need to create a new one, go to appleid.apple.com (-22938)
[15:58:13]: 
[15:58:13]: Your account has 2 step verification enabled
[15:58:13]: Please go to https://appleid.apple.com/account/manage
[15:58:13]: and generate an application specific password for
[15:58:13]: the iTunes Transporter, which is used to upload builds
[15:58:13]: 
[15:58:13]: To set the application specific password on a CI machine using
[15:58:13]: an environment variable, you can set the
[15:58:13]: FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD variable
-------------------------------------------------------------------------------------
Please provide your Apple Developer Program account credentials
The login information you enter will be stored in your macOS Keychain
-------------------------------------------------------------------------------------
Password (application-specific for xxx@xxx.com): *******************
[16:05:13]: iTunes Transporter successfully finished its job
[16:05:14]: Going to upload updated app to App Store Connect
[16:05:14]: This might take a few minutes. Please don't interrupt the script.
[16:05:26]: [Transporter Error Output]: Sign in with the app-specific password you generated. If you forgot the app-specific password or need to create a new one, go to appleid.apple.com (-22938)
[16:05:27]: Transporter transfer failed.
[16:05:27]: 
[16:05:27]: Sign in with the app-specific password you generated. If you forgot the app-specific password or need to create a new one, go to appleid.apple.com (-22938)
[16:05:27]: 
[16:05:27]: Your account has 2 step verification enabled
[16:05:27]: Please go to https://appleid.apple.com/account/manage
[16:05:27]: and generate an application specific password for
[16:05:27]: the iTunes Transporter, which is used to upload builds
[16:05:27]: 
[16:05:27]: To set the application specific password on a CI machine using
[16:05:27]: an environment variable, you can set the
[16:05:27]: FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD variable
-------------------------------------------------------------------------------------
Please provide your Apple Developer Program account credentials
The login information you enter will be stored in your macOS Keychain
-------------------------------------------------------------------------------------
Password (application-specific for xxx@xxx.com): *******************
[16:05:55]: Going to upload updated app to App Store Connect
[16:05:55]: This might take a few minutes. Please don't interrupt the script.

Environment

Please run expo diagnostics in the project folder and copy the output here:

  Expo CLI 3.11.7 environment info:
    System:
      OS: macOS 10.15.2
      Shell: 5.7.1 - /bin/zsh
    Binaries:
      Node: 13.6.0 - /usr/local/bin/node
      Yarn: 1.21.1 - /usr/local/bin/yarn
      npm: 6.13.4 - /usr/local/bin/npm
    IDEs:
      Android Studio: 3.5 AI-191.8026.42.35.5977832
      Xcode: 11.3.1/11C504 - /usr/bin/xcodebuild
    npmPackages:
      @types/react: ^16.9.0 => 16.9.19 
      @types/react-native: ^0.60.15 => 0.60.31 
      expo: ^36.0.0 => 36.0.2 
      react: 16.9.0 => 16.9.0 
      react-native: 0.61.4 => 0.61.4 
      react-navigation: ^3.11.1 => 3.13.0 
  • Phone/emulator/simulator platform, model and version: latest

Reproducible Demo

  • init blank typescript
  • build & upload to ios
@mackbrowne
Copy link

Just reporting in that I got this too. The upload seems to still work after inputting the password twice.

@pwever
Copy link

pwever commented Feb 14, 2020

Agreed. Only a minor annoyance, but I am experiencing this issue as well.

@EvanBacon EvanBacon added the 🔐 Credentials Provisioning profiles and apple developer auth label Apr 28, 2020
@LinusU
Copy link
Contributor

LinusU commented May 12, 2020

When running in non-interactive mode it doesn't try again with the same password, but simply fails the script. This is currently making our automated delivery fail, and we have to manually run expo upload:ios to be able to paste the password in two times...

@rnkyr
Copy link

rnkyr commented Aug 10, 2020

got the same situation as @LinusU

any updates here?

@subhadippramanik
Copy link

Following

@MoonTahoe
Copy link

I'm in the same boat. I'm using Github actions with expo/expo-github-action@v5. The expo build:ios command works great with apple account info. However, if I try the upload:ios command and use my apple credentials it errors out because of 2FA. When I use the app specific password, it errors out with invalid apple credentials.

- run: expo upload:ios --non-interactive --apple-id $EXPO_APPLE_ID --apple-id-password $EXPO_APPLE_PASSWORD
        env:
          EXPO_APPLE_ID: ${{secrets.EXPO_APPLE_ID}}
          EXPO_APPLE_PASSWORD: ${{secrets.APP_SPECIFIC_PASSWORD }}

@eladtaranis
Copy link

Same here (Invalid credentials when using App Specific passwords).

Any update on this one?

@LinusU
Copy link
Contributor

LinusU commented Nov 10, 2020

@eladtaranis did you try entering the same password twice? That works for me

@EvanBacon EvanBacon added expo upload Pertains to the command expo upload Fastlane Regarding the Fastlane/Ruby integration labels Nov 20, 2020
@brentvatne
Copy link
Member

expo upload:ios has been replaced by eas submit as described here #2192 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🔐 Credentials Provisioning profiles and apple developer auth expo upload Pertains to the command expo upload Fastlane Regarding the Fastlane/Ruby integration
Projects
None yet
Development

No branches or pull requests

10 participants