majd / ipatool

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

Getting error after running command ipatool auth login --email and providing password with 2FA #220

Closed skadoosh07 closed 8 months ago

skadoosh07 commented 10 months ago

What happened?

The error I am getting is

Screenshot 2023-08-25 at 12 48 53 AM

Don't know how to proceed with it.

Version

dev

Relevant log output

No response

iteroji commented 9 months ago

this is on Linux, right?

iteroji commented 9 months ago

you can fix this by logging in to the machine via GUI (if this is a desktop OS) and running the command there to log you in. Upon the first credential save Gnome will pop up a dialogue to set a password for the mew keychain. Set it or leave it empty and you can now use it through SSH.

If you don't have access to the GUI, an alternative is to build the tool from source and comment out the following line: https://github.com/majd/ipatool/blob/6ccb4a7f0bc7c8ef3da240f599197a2c52d13a59/cmd/common.go#L67

This array defines the allowed keychain providers, and if the linux secret service doesn't work, you can fall back to the file provider. This will create a .ipatool folder in your home directory and save the credentials there. Perhaps it would be good to add an option to override the keychain backend?

skadoosh07 commented 9 months ago

thanks, the error got resolved