# Retrieve iOS App plist



Objective: Get plist of an iOS app package.

Input: The AppStore URL, e.g. https://apps.apple.com/us/app/genshin-impact-lantern-rite/id1517783697

First step is to find bundle ID from Apple :
`https://itunes.apple.com/lookup?id={Numeric ID here}`

In our example, the lookup URL is: https://itunes.apple.com/lookup?id=1517783697

A text file will be downloaded after visiting the URL. We can get the bundleId field: `com.miHoYo.GenshinImpact`.

Install the `ipatool` to download the package.

```
brew tap majd/repo
brew install ipatool
```

Login:

```
ipatool auth login --email=xxxxx@icloud.com
```

Download: remember to add the `--purchase` as even a free software from AppStore requires a user to acquire a license.

```
ipatool download -b com.miHoYo.GenshinImpact  -o genshin-impact.ipa --purchase
```

The package is very huge in my example. It is about 2.4GB.

IPA is essentially an zip file. Uncompress it:

```
unzip genshin-impact.ipa
cd Payload/GenshinImpact.app/
```

Then you an find the `Info.plist` file there.

