> 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
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://awesome.hackpuntes.com/ios/how-to-extract-ipa-from-ios-device.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
