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

Support specify keyring backend in cmdline option #139

Closed srdr0p closed 1 year ago

srdr0p commented 1 year ago

Description

On MacOS, If run ipatool in remote SSH connection or third party terminal, ipatool will inherit parent process's security context, and thus has no permission to access Keychain, I think ipatool can change keyring backend to file to resolve this problem.

3:11PM ERR error="failed to get account: failed to read item from keychain: failed to get item from keyring: The specified item could not be found in the keyring" success=false

majd commented 1 year ago

Could you please provide exact steps to reproduce the issue? What third party terminal app can I use to trigger this error message?

srdr0p commented 1 year ago

I Use iTerm2

  1. Enable SSH on localhost
  2. Use another SSH client(remote or local) to connet the Mac Note: MacOS's GUI is not started when user is not login, so even if user is login by remote SSH, Keychain unlock dialog will never appear.