ipatool
v2.1.4
ipatool是一种命令行工具,可让您在应用程序商店上搜索iOS应用程序并下载应用程序包的副本,即IPA文件。

您可以从GitHub版本中获取最新版本的ipatool 。
您可以使用Homebrew安装ipatool 。
$ brew tap majd/repo
$ 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 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)
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
要下载IPA文件的副本,请使用download命令。
Download (encrypted) iOS 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)
-h, --help help for download
-o, --output string The destination path of the downloaded app package
--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
注意:该工具默认情况下以交互式模式运行。如果在自动化环境中运行,请使用--non-interactive标志。
可以使用GO工具链编译该工具。
$ go build -o ipatool可以使用以下命令执行单元测试。
$ go generate github.com/majd/ipatool/...
$ go test -v github.com/majd/ipatool/...Ipatool根据MIT许可发布。