<commit_before>.. _packaging_ios:

Create a package for IOS
========================

.. note::

    Currently, packages for iOS can only be generated with Python 2.7. Python
    3.4+ support is on the way.

The overall process for creating a package for IOS can be explained in 4 steps:

#. :ref:`Compile the distribution` (python + modules for IOS)
#. :ref:`Create an Xcode project` (and link your source code)
#. :ref:`Update the Xcode project`
#. :ref:`Customize`

Prerequisites
-------------

You need to install some dependencies, like Cython, autotools, etc. We
encourage you to use `Homebrew <http://mxcl.github.com/homebrew/>`_ to install
those dependencies:

.. parsed-literal::

    brew install autoconf automake libtool pkg-config
    brew link libtool
    sudo easy_install pip
    sudo pip install |cython_install|

For more detail, see :ref:`IOS Prerequisites <packaging_ios_prerequisites>`.
Just ensure that everything is ok before starting the second step!

.. _Compile the distribution:

Compile the distribution
------------------------
<commit_msg>update note about kivy-ios python version (#6511)<commit_after>.. _packaging_ios:

Create a package for IOS
========================

.. note::

    Currently, kivy-iOS builds packages with Python 2.7 and 3.7.

The overall process for creating a package for IOS can be explained in 4 steps:

#. :ref:`Compile the distribution` (python + modules for IOS)
#. :ref:`Create an Xcode project` (and link your source code)
#. :ref:`Update the Xcode project`
#. :ref:`Customize`

Prerequisites
-------------

You need to install some dependencies, like Cython, autotools, etc. We
encourage you to use `Homebrew <http://mxcl.github.com/homebrew/>`_ to install
those dependencies:

.. parsed-literal::

    brew install autoconf automake libtool pkg-config
    brew link libtool
    sudo easy_install pip
    sudo pip install |cython_install|

For more detail, see :ref:`IOS Prerequisites <packaging_ios_prerequisites>`.
Just ensure that everything is ok before starting the second step!

.. _Compile the distribution:

Compile the distribution
------------------------

{'fraction_non_alphanumeric': 0.1357444809769845, 'fraction_numerical': 0.006575857209957727, 'mean_word_length': 3.5806451612903225, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2745750', 'n_tokens_mistral': 632, 'n_tokens_neox': 585, 'n_words': 247}