
Инструмент командной строки, который позволяет искать и загружать пакеты приложений (известные как ipa-файлы) из iOS App Store
ipatool — это инструмент командной строки, который позволяет искать приложения iOS в App Store и загружать копию пакета приложения, известного как ipa-файл.

Вы можете загрузить последнюю версию ipatool из релизов GitHub.
Вы можете установить ipatool с помощью Homebrew.
$ brew install ipatool
Чтобы пройти аутентификацию в App Store, используйте команду auth.
Authenticate with the App Store
Usage:
ipatool auth [command]
Available Commands:
info Show current account info
login Login to the App Store
revoke Revoke your App Store credentials
Flags:
-h, --help help for auth
Global Flags:
--format format sets output format for command; can be 'text', 'json' (default text)
--non-interactive run in non-interactive session
--verbose enables verbose logs
Use "ipatool auth [command] --help" for more information about a command.
Чтобы выполнить поиск приложений в App Store, используйте команду search.
Search for iOS and tvOS apps available on the App Store
Usage:
ipatool search <term> [flags]
Flags:
-h, --help help for search
-l, --limit int maximum amount of search results to retrieve (default 5)
--platform string Platform to search: iphone, ipad, or appletv
Global Flags:
--format format sets output format for command; can be 'text', 'json' (default text)
--non-interactive run in non-interactive session
--verbose enables verbose logs
Чтобы получить лицензию на приложение, используйте команду purchase.
Obtain a license for the app from the App Store
Usage:
ipatool purchase [flags]
Flags:
-b, --bundle-identifier string Bundle identifier of the target iOS app (required)
-h, --help help for purchase
Global Flags:
--format format sets output format for command; can be 'text', 'json' (default text)
--non-interactive run in non-interactive session
--verbose enables verbose logs
Чтобы получить список доступных версий приложения для загрузки, используйте команду list-versions.
List the available versions of an iOS app
Usage:
ipatool list-versions [flags]
Flags:
-i, --app-id int ID of the target iOS app (required)
-b, --bundle-identifier string The bundle identifier of the target iOS app (overrides the app ID)
-h, --help help for list-versions
Global Flags:
--format format sets output format for command; can be 'text', 'json' (default text)
--keychain-passphrase string passphrase for unlocking keychain
--non-interactive run in non-interactive session
--verbose enables verbose logs
Чтобы загрузить копию ipa-файла, используйте команду download.
Download (encrypted) iOS and tvOS app packages from the App Store
Usage:
ipatool download [flags]
Flags:
-i, --app-id int ID of the target iOS app (required)
-b, --bundle-identifier string The bundle identifier of the target iOS app (overrides the app ID)
--external-version-id string External version identifier of the target iOS app (defaults to latest version when not specified)
-h, --help help for download
-o, --output string The destination path of the downloaded app package
--platform string Platform to download for: iphone, ipad, or appletv
--purchase Obtain a license for the app if needed
Global Flags:
--format format sets output format for command; can be 'text', 'json' (default text)
--keychain-passphrase string passphrase for unlocking keychain
--non-interactive run in non-interactive session
--verbose enables verbose logs
Чтобы определить идентификатор внешней версии, возвращаемый командой list-versions, используйте команду get-version-metadata.
Retrieves the metadata for a specific version of an app
Usage:
ipatool get-version-metadata [flags]
Flags:
-i, --app-id int ID of the target iOS app (required)
-b, --bundle-identifier string The bundle identifier of the target iOS app (overrides the app ID)
--external-version-id string External version identifier of the target iOS app (required)
-h, --help help for get-version-metadata
Global Flags:
--format format sets output format for command; can be 'text', 'json' (default text)
--keychain-passphrase string passphrase for unlocking keychain
--non-interactive run in non-interactive session
--verbose enables verbose logs
Примечание: по умолчанию инструмент работает в интерактивном режиме. Используйте флаг --non-interactive, если он запускается в автоматизированной среде.
Инструмент может быть скомпилирован с использованием тулчейна Go.
$ go build -o ipatool
Модульные тесты можно выполнить с помощью следующих команд.
$ go generate github.com/majd/ipatool/...
$ go test -v github.com/majd/ipatool/...
IPATool выпускается под лицензией MIT.