majd / ipatool

Command-line tool that allows searching and downloading app packages (known as ipa files) from the iOS App Store
MIT License
5.35k stars 468 forks source link

Need help on "enter 2FA code" #132

Closed travisgu closed 1 year ago

travisgu commented 1 year ago

When I used the tool on Macbook, I always stuck on the login step. The message shows:

11:55AM INF enter 2FA code:

I checked my ios devices and there was no code showing. Where can I find the 2FA code? Thanks.

majd commented 1 year ago

You can also get a code from your iOS or macOS devices by going to iCloud -> Security -> Get a Verification Code. Please note that the account you are logging in with should be the same one those devices are authenticated to. Another thing to keep in mind is sometimes you may get prompted for 2FA code even if the password and email address were incorrect, which is ineffective - please double check that as well.

travisgu commented 1 year ago

Thanks for your help. I can get the verification code now. @majd

elburro1887 commented 1 year ago

Just for anyone else who was confused on iOS, the way to get there is:

Settings -> Your Account -> Password & Security -> Get Verification Code

tejuamirthi commented 1 year ago

even after entering the verification code from above approach, still getting some other error Failed to login

abartl commented 1 year ago

You need to use the login command exactly the following way: ipatool auth login --email=<YOUR EMAIL> It will pop up also the 2FA code verification. My assumption is that other formats somehow don't get the parameters parsed correctly. So the following won't work: ipatool auth login -email <YOUR EMAIL> ipatool auth login -email=<YOUR EMAIL>

@tejuamirthi @majd

even after entering the verification code from above approach, still getting some other error Failed to login

lobotomoe commented 11 months ago

Experienced same issue. Reason is wrong password. Even if you typed wrong password you will asked 2FA. This is confusing a little.