majd / ipatool

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

下载显示An unknown error has occurred #64

Closed zwsn closed 2 years ago

zwsn commented 2 years ago
image

还有能否默认搜索下载ID设置国家的应用,每次要指定有点麻烦

majd commented 2 years ago

I think you have a typo in the download command. You specified EN as the country but you probably meant CN. EN is not a valid ISO 3166-1 alpha-2 country code.

ryh commented 2 years ago

@zwsn the Default country code is US 默认的国家码是US 作者告诉你了EN不是国家码 Try alias the command with 你可以试试使用alias别名来使用

alias ipas="ipatool search -c CN "
ipas 六龙争霸

@majd he was saying that input a country code every search is kind of inconvenient.

~I would suggest a ProcessInfo.processInfo.environment["IPATOOL_COUNTRY"] for user setting their default country code, since alias needed to be set for every ipatool subcommand to work properly.~

I saw following Error just now

The country provided does not match with the account you are using. Supply a valid country using the "--country" flag.

so Logged in User have same-time stored country code would be great.

zwsn commented 2 years ago

看到了,我贴图的时候输错了,贴图之前一直使用的-c cn,找到问题所在了,是那个应用被下架了.