Toolchain for compiling Python / Kivy / other libraries for iOS
a5015a746b
The get_viewcontroller() function assumed the SDL window is always the first window in the shared application. However, it is not there. This commit assumes the SDL window is the keyWindow of the shared application. In the mailComposeController:didFinishWithResult:error: method. The code originally uses the same get_viewcontroller() function to dismiss the modal view. However, uses [controller presentingViewController] is more promising to make sure the view controller that presents the MFMailComposeViewController. There are also errors showed in the log if animation is disabled. So I changed to use animation on both presenting and dismissing. And the errors in log gone. Signed-off-by: Olli Wang <olliwang@ollix.com> |
||
---|---|---|
src | ||
tools | ||
.gitignore | ||
LICENSE | ||
README.rst |
Kivy for IOS ============ (This is a work in progress.) #. Using brew, you can install dependencies:: brew install autoconf automake libtool pkg-config mercurial brew link libtool brew link mercurial #. Install Cython:: # easy-install method sudo easy_install cython # pip method if available (sudo might be needed.) pip install cython #. Build the whole toolchain with `tools/build-all.sh` #. Create an Xcode project for your application with `tools/create-xcode-project.sh test /path/to/app` #. Open your newly created Xcode project #. Ensure code signing is setup correctly #. Click on play Notes ----- A build phase is added to the project that processes and moves your app's files to the Xcode project before every build. If you would like to handle this process manually, remove the "Run Script" build phase from your target and use `tools/populate-project.sh /path/to/app` after every change. You can also change the path to your app by modifying this build phase.