> For the complete documentation index, see [llms.txt](https://gitbook.cdxiaodong.life/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.cdxiaodong.life/ios-ying-yong-an-quan/gai-shu/app-package.md).

# 应用包结构

iOS apps are distributed in IPA (iOS App Store Package) archives. The IPA file is a ZIP-compressed archive that contains all the code and resources required to execute the app.

At a high level, the IPA file has the following structure:

| Name                                       | Type      | Description                                                                                                                                                                                        |
| ------------------------------------------ | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Payload                                    | Directory | This directory contains all the application data.                                                                                                                                                  |
| Payload/MyApp.app                          | Directory | [Bundle directory](/ios-ying-yong-an-quan/gai-shu/app-data-files.md#bundle-container-structure).                                                                                                   |
| Payload/MyApp.app/MyApp                    | File      | This file contains the application's executable code                                                                                                                                               |
| Payload/MyApp.app/embedded.mobileprovision | File      | This plist file contains the [provisioning profile](/ios-ying-yong-an-quan/gai-shu/deployment.md#provisioning-profiles) for an application.                                                        |
| Payload/MyApp.app/Info.plist               | File      | This file is the manifest of the iOS application.                                                                                                                                                  |
| iTunesArtwork                              | File      | PNG image used as the application's icon                                                                                                                                                           |
| iTunesMetadata.plist                       | File      | This file contains various bits of information, including the developer's name and ID, the bundle identifier, copyright information, genre, the name of the app, release date, purchase date, etc. |
| WatchKitSupport/WK                         | Directory | This specific bundle contains the extension delegate and the controllers for managing the interfaces and responding to user interactions on an Apple Watch.                                        |
| META-INF                                   | Directory | This directory contains metadata about what program was used to create the IPA.                                                                                                                    |

## References

* [Bundle Programming Guide: Bundle Structures](https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFBundles/BundleTypes/BundleTypes.html)
* [iOS Testing Guide: Platform Overview](https://mobile-security.gitbook.io/mobile-security-testing-guide/ios-testing-guide/0x06a-platform-overview)


---

# 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, and the optional `goal` query parameter:

```
GET https://gitbook.cdxiaodong.life/ios-ying-yong-an-quan/gai-shu/app-package.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
