Deprecated this article (Reference to New article)
Notez que compilez kivy-ios sur l'environnement Mac (osx 10.10) et exécutez-le sur l'appareil
http://qiita.com/b4b4r07/items/6efebc2f3d1cbbd393fc http://stackoverflow.com/questions/21242107/pip-install-pil-dont-install-into-virtualenv http://www.renedohmen.nl/blog/2013/08/installing-kivy-on-mac-osx-10-6-with-brew/ http://kivy.org/docs/guide/packaging-ios.html
console
cd `brew --prefix`
rm -rf Cellar
brew prune
rm `git ls-files`
rm -r Library/Homebrew Library/Aliases Library/Formula Library/Contributions
rm -rf .git
rm -rf ~/Library/Caches/Homebrew
console
cd
sudo chown -R $USER:admin /usr/local
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew doctor
console
brew install python
brew link --overwrite python
console
brew install mercurial
brew link --overwrite mercurial
brew install sdl sdl_image sdl_mixer sdl_ttf portmidi
pip install -Iv http://cython.org/release/Cython-0.20.2.tar.gz
ln -s /usr/local/include/freetype2 /usr/local/include/freetype
pip install PIL --allow-external PIL --allow-unverified PIL
pip install kivy
console
brew install autoconf automake libtool pkg-config
git clone git://github.com/kivy/kivy-ios
cd kivy-ios
tools/build-all.sh
console
tools/create-xcode-project.sh test test
cd app-test
mkdir test
mkdir YourApp
cd test
vi main.py
main.py
import kivy
kivy.require('1.0.7')
from kivy.app import App
from kivy.uix.button import Button
class TestApp(App):
def build(self):
roodWidget = Button(text='hello world')
# return a Button() as a root widget
return roodWidget
if __name__ == '__main__':
TestApp().run()
console
cd ..
open test.xcodeproj
Lors de votre inscription sur l'Apple Store, vous devez exécuter la commande suivante pour mincir.
console
tools/reduce-python.sh
Recommended Posts