For help with packaging your app for iOS, check out Kivy documentation - Create a package for iOS.
Package Your App for iOS
The second command may not be needed, but there’s no harm in running it. If you’ve not used
pip to install
cython, as seen in the previous section to create an Android app, then you’ll need to do that too.
To ensure you avoid hard-to-diagnose problems with Xcode, you’ll need to keep your
kivy-ios/ folder outside of the tree where your existing Python project is located. If you don’t do this, then Xcode will generate errors during the build process that can be hard to track down. So, on-screen, you’ll see the creation of a
kivy-ios/ folder, which is outside of the path of the folder where the development has been happening so far, as seen on-screen.
First, the new directory is created … and then navigated to … and then the
toolchain build is started, which can take some time. If you’ve installed but not run Xcode, then you’ll need to run it first, as this will install the extras, such as iPhone Simulator, that are needed for the iOS packaging to work.
Your main application’s entry point must be named
main.py before you create the Xcode project. To ensure only the needed files are copied,
main.py will be copied into a new folder within the project, but it will be called
kivy-ios-source to make identification easier.
toolchain command is used to create the project. Note that
title will be the name of the project, and it can’t contain any spaces or illegal characters. Also, note that the
app_directory must be a fully qualified path.
After a short delay, you should see the iPhone Simulator on-screen running your
kvcalc program. Note that if you want to submit your application to the App Store, then you’ll have to create a developer account at developer.apple.com and pay the yearly fee.
Become a Member to join the conversation.