ipatool
ipatool copied to clipboard
Japanese account can't obtain license for Japanese exclusive app
What happened?
While I am physically in the USA, I have an Apple account for the Japan region. I verified today that the account can still download Japanese exclusive apps, both by using the App Store on an iPhone signed into the account to install an app, and by using the account on iTunes 12.6.5.3 on Windows to download an .ipa file. Running on a MacBook Air logged into the same Japanese account, I can authenticate the account with ipatool, use ipatool to obtain licenses for non region-locked apps, and use ipatool to download region-locked apps I already have a license for. However, if I try to obtain a license for a Japan region-locked app, using the -c jp flag, I get the message "The country provided does not match with the account you are using". Why won't ipatool accept this as a Japanese account? I tried setting the MacBook's region to Japan, as well as connecting through a Japanese VPN, but it didn't make a difference.
Version
1.1.2
Relevant log output
ipatool download -b jp.co.jbc.Ansapo -c jp --purchase --log-level debug
==> âšī¸ [Info] Authenticated as '[redacted]'.
==> đ [Debug] Creating HTTP client...
==> đ [Debug] Creating iTunes client...
==> âšī¸ [Info] Querying the iTunes Store for 'jp.co.jbc.Ansapo' in country 'jp'...
==> đ [Debug] Found app: ãĸãŗ-ãĩã (2.4.3).
==> đ [Debug] Creating HTTP client...
==> đ [Debug] Creating App Store client...
==> âšī¸ [Info] Requesting a signed copy of '666614433' from the App Store...
==> đ [Debug] invalidLicense
==> âšī¸ [Info] License is missing.
==> đ [Debug] Creating HTTP client...
==> đ [Debug] Creating App Store client...
==> âšī¸ [Info] Obtaining a license for '666614433' from the App Store...
==> đ [Debug] invalidCountry
==> â [Error] The country provided does not match with the account you are using. Supply a valid country using the "--country" flag.
Could you try setting the country code in uppercase? JP
in your example instead of jp
.
I actually get a different error if I use uppercase JP. It keeps saying it's obtained a license, but then says I don't have a license. Example output follows. I don't know if this makes a difference, but it's an old account that doesn't use 2FA.
First, I tried to download and purchase in the same command:
ipatool download -b jp.co.jbc.Ansapo -c JP --purchase --log-level debug
==> âšī¸ [Info] Authenticated as '[redacted]'.
==> đ [Debug] Creating HTTP client...
==> đ [Debug] Creating iTunes client...
==> âšī¸ [Info] Querying the iTunes Store for 'jp.co.jbc.Ansapo' in country 'JP'...
==> đ [Debug] Found app: ãĸãŗ-ãĩã (2.4.3).
==> đ [Debug] Creating HTTP client...
==> đ [Debug] Creating App Store client...
==> âšī¸ [Info] Requesting a signed copy of '666614433' from the App Store...
==> đ [Debug] invalidLicense
==> âšī¸ [Info] License is missing.
==> đ [Debug] Creating HTTP client...
==> đ [Debug] Creating App Store client...
==> âšī¸ [Info] Obtaining a license for '666614433' from the App Store...
==> đ [Debug] Obtained a license for '666614433'.
==> đ [Debug] Creating HTTP client...
==> đ [Debug] Creating App Store client...
==> âšī¸ [Info] Requesting a signed copy of '666614433' from the App Store...
==> đ [Debug] invalidLicense
==> â [Error] Your Apple ID does not have a license for this app. Use the "purchase" command or the "--purchase" to obtain a license.
Next, I tried to purchase in a separate command. This reports that it works, but as you'll see later, I couldn't actually download it:
ipatool purchase -b jp.co.jbc.Ansapo -c JP --log-level debug
==> âšī¸ [Info] Authenticated as '[redacted]'.
==> đ [Debug] Creating HTTP client...
==> đ [Debug] Creating iTunes client...
==> âšī¸ [Info] Querying the iTunes Store for 'jp.co.jbc.Ansapo' in country 'JP'...
==> đ [Debug] Found app: ãĸãŗ-ãĩã (2.4.3).
==> đ [Debug] Creating HTTP client...
==> đ [Debug] Creating App Store client...
==> âšī¸ [Info] Obtaining a license for '666614433' from the App Store...
==> đ [Debug] Obtained a license for '666614433'.
==> âšī¸ [Info] Done.
Then, I tried to just download it, but despite seemingly having just gotten a license, it says I don't have one:
ipatool download -b jp.co.jbc.Ansapo -c JP --log-level debug
==> âšī¸ [Info] Authenticated as '[redacted]'.
==> đ [Debug] Creating HTTP client...
==> đ [Debug] Creating iTunes client...
==> âšī¸ [Info] Querying the iTunes Store for 'jp.co.jbc.Ansapo' in country 'JP'...
==> đ [Debug] Found app: ãĸãŗ-ãĩã (2.4.3).
==> đ [Debug] Creating HTTP client...
==> đ [Debug] Creating App Store client...
==> âšī¸ [Info] Requesting a signed copy of '666614433' from the App Store...
==> đ [Debug] invalidLicense
==> â [Error] Your Apple ID does not have a license for this app. Use the "purchase" command or the "--purchase" to obtain a license.
I confirm the same issue.
Can you please try the latest RC build and see if the issue is resolved? https://github.com/majd/ipatool/releases/tag/v2.0.0-rc.2
Note that you no longer need to provide the --country
flag when search for, downloading or purchasing apps.
Yes, this seems to work now. Thanks!