majd / ipatool

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

Using ipatool without 2FA #40

Closed michaeleisel closed 2 years ago

michaeleisel commented 2 years ago

I want to use ipatool in a cron job on a server to automatically pull the latest version of an app from the App Store. However, the server can't do it on its own due to 2FA. Is there a way to get around this? For example, in https://docs.fastlane.tools/getting-started/ios/authentication/ they discuss a number of ways, but all of them either require some manual help periodically or else aren't applicable to downloading apps from the App Store.

rursache commented 2 years ago

@michaeleisel you should be able to use a static app password instead of your current appleid password. that way, there is no 2FA involved

majd commented 2 years ago

I believe that the methods linked above (including app-specific passwords) are incompatible with the App Store API utilized in ipatool. The only way I can think of to automate the downloading process would be to configure the 2FA to use SMS and intercept the message and supply it to your tooling. I'll reopen this issue if the situation changes in the future.