> For the complete documentation index, see [llms.txt](https://awesome.hackpuntes.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://awesome.hackpuntes.com/ios/how-to-extract-ipa-from-ios-device.md).

# How to extract IPA from iOS device

1. Download and install APP from Apple Store or other source.
2. Connect with SSH.

```bash
ssh root@<iPhone-IP> # default password 'alpine'
```

3. Go to Bundle container directory.

```bash
cd /var/containers/Bundle/Application/
```

4. Get UUID folder from APP or listing all.

```bash
find | grep "<APP-NAME>"
ls *
```

<figure><img src="/files/t5BGotdJJI6mW43APwaw" alt=""><figcaption><p>All installed IPAS</p></figcaption></figure>

<figure><img src="/files/Ub39du4FnFcYvadvdmNw" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/5jX0pfTj6AEfSoatpQ3O" alt=""><figcaption></figcaption></figure>

5. Go to UUID folder APP

```bash
cd <UUID-Folder>
```

6. Create `Payload` dir

```bash
mkdir Payload
```

7. Find .app folder name of UUID Folder and copy all content in Payload folder

```bash
ls
cp -r <APP-NAME>.app/ Payload/
```

<figure><img src="/files/5eF1roggHWibhKMzvJZ1" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/CvtRooMiJrYzrogiN7qy" alt=""><figcaption></figcaption></figure>

8. Create IPA File from folder

```bash
zip -r /var/root/<NAME-TO-EXTRACT-IPA>.ipa Payload/
```

9. Connect with SFTP

```bash
sftp root@<iPhone-IP> # default password 'alpine'
```

10. Get IPA

```bash
get -r /var/root/<NAME-TO-EXTRACT-IPA>.ipa
```
