Loading... `ipatool`[是一个命令行工具,允许您在App Store](https://apps.apple.com/)上搜索 iOS 应用程序并下载应用程序包的副本(称为*ipa*文件)。 地址:[链接](https://github.com/majd/ipatool) ## 要求 * 支持的操作系统(Windows、Linux 或 macOS)。 * 设置 Apple ID 以使用 App Store。 ## 安装 ### 手动的 `ipatool`您可以从[GitHub 版本](https://github.com/majd/ipatool/releases)中获取最新版本。 ### 软件包管理器 (macOS) 您可以`ipatool`使用[Homebrew](https://brew.sh/)安装。 ```shell notranslate position-relative overflow-auto $ brew tap majd/repo $ brew install ipatool ``` ## 用法 要向 App Store 进行身份验证,请使用该`auth`命令。 ```sh 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`命令 ```sh 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 工具链进行编译。 ```shell notranslate position-relative overflow-auto $ go build -o ipatool ``` 可以使用以下命令执行单元测试。 ```shell notranslate position-relative overflow-auto $ go generate github.com/majd/ipatool/... $ go test -v github.com/majd/ipatool/... ``` 最后修改:2025 年 04 月 14 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 如果觉得我的文章对你有用,请随意赞赏