> For the complete documentation index, see [llms.txt](https://docs.kivy.fun/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kivy.fun/packaging/packaging-ios-prerequisites.md).

# iOS Prerequisites

The following guide assumes:

> * XCode 5.1 or above
> * OS X 10.9 or above

Your experience may vary with different versions.

## Getting started

In order to submit any application to the iTunes store, you will need an [iOS Developer License](https://developer.apple.com/programs/ios/). For testing, you can use a physical device or the XCode iOS emulator.

Please note that in order to test on the device, you need to register these devices and install your "provisioning profile" on them. Please refer to the Apple's [Getting started](https://developer.apple.com/programs/ios/gettingstarted/) guide for more information.

## Homebrew

We use the [Homebrew](http://brew.sh/) package manager for OSX to install some of the dependencies and tools used by Kivy. It's a really helpful tool and is an Open Source project hosted on [Github](https://github.com/Homebrew/homebrew).

Due to the nature of package management (complications with versions and Operating Systems), this process can be error prone and cause failures in the build process. The **Missing requirement: \<pkg> is not installed!** message is typically such an error.

The first thing is to ensure you have run the following commands:

```
brew install autoconf automake libtool pkg-config mercurial
brew link libtool
brew link mercurial
sudo easy_install pip
sudo pip install cython
```

If you still receive build errors, check your Homebrew is in a healthy state:

```
brew doctor
```

For further help, please refer to the [Homebrew wiki](https://github.com/Homebrew/homebrew/wiki).

The last, final and desperate step to get things working might be to remove Homebrew altogether, get the latest version, install that and then re-install the dependencies.

> [How to Uninstall and Remove Homebrew for Mac OSX](http://www.curvve.com/blog/guides/2013/uninstall-homebrew-mac-osx/)


---

# 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://docs.kivy.fun/packaging/packaging-ios-prerequisites.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.
