Я использую Ma c OS X catelina. Xcode version = 11.3 Я также обнаружил, что могу использовать python3 вместо 2, но получу ошибку, которую можно решить, понизив версию Xcode до 10.3. Поэтому я задумался, можно ли решить эту проблему, изменив python3 на 2 вместо перехода на Xcode 10.3, но при этом возникла эта проблема. Я выполнил следующие команды:
brew install autoconf automake libtool pkg-config
brew link libtool
pip3 install Cython==0.29.17
Tenzins-MacBook-Air:kivy-ios tenzindayoe$ sudo toolchain build python2 openssl kivy
Password:
[INFO ] Building with 4 processes, where supported
[INFO ] Want to build ['python2', 'openssl', 'kivy']
[INFO ] Loaded recipe python2 (depends of ['hostpython2', 'libffi'], optional are ['openssl'])
[INFO ] Loaded recipe openssl (depends of [], optional are [])
[INFO ] Loaded recipe kivy (depends of ['sdl2', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'ios', 'pyobjus', 'python', 'host_setuptools3'], optional are [])
[INFO ] Loaded recipe hostpython2 (depends of ['hostlibffi'], optional are ['openssl'])
[INFO ] Loaded recipe libffi (depends of [], optional are [])
[INFO ] Loaded recipe sdl2 (depends of [], optional are [])
[INFO ] Loaded recipe sdl2_image (depends of ['sdl2'], optional are [])
[INFO ] Loaded recipe sdl2_mixer (depends of ['sdl2'], optional are [])
[INFO ] Loaded recipe sdl2_ttf (depends of ['sdl2', 'freetype'], optional are [])
[INFO ] Loaded recipe ios (depends of ['python'], optional are [])
[INFO ] Loaded recipe pyobjus (depends of ['python'], optional are [])
[INFO ] Loaded recipe python (depends of ['python2'], optional are [])
[INFO ] Loaded recipe host_setuptools3 (depends of ['openssl', 'hostpython3'], optional are [])
[INFO ] Loaded recipe hostlibffi (depends of [], optional are [])
[INFO ] Loaded recipe freetype (depends of [], optional are [])
[INFO ] Loaded recipe hostpython3 (depends of ['hostlibffi', 'hostopenssl'], optional are [])
[INFO ] Loaded recipe hostopenssl (depends of [], optional are [])
[INFO ] Build order is ['freetype', 'hostlibffi', 'hostopenssl', 'libffi', 'openssl', 'sdl2', 'hostpython2', 'hostpython3', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'host_setuptools3', 'python2', 'python', 'ios', 'pyobjus', 'kivy']
[INFO ] Recipe order is ['freetype', 'hostlibffi', 'hostopenssl', 'libffi', 'openssl', 'sdl2', 'hostpython2', 'hostpython3', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'host_setuptools3', 'python2', 'ios', 'pyobjus', 'kivy']
[INFO ] Include dir added: {arch.arch}/freetype
[INFO ] Include dir added: {arch.arch}/hostlibffi
[INFO ] Include dir added: {arch.arch}/ffi
[INFO ] Include dir added: {arch.arch}/openssl
[INFO ] Include dir added: common/sdl2
[INFO ] Global: hostpython located at /Users/tenzindayoe/kivy-ios/dist/hostpython2/bin/python
[INFO ] Global: hostpgen located at /Users/tenzindayoe/kivy-ios/dist/hostpython2/bin/pgen
[ERROR ] Wanted to use hostpython3
[ERROR ] but hostpython is already provided by hostpython2.
[ERROR ] You can have only one hostpython version compiled
Tenzins-MacBook-Air:kivy-ios tenzindayoe$ toolchain build python openssl kivy
[INFO ] Building with 4 processes, where supported
[INFO ] Want to build ['python', 'openssl', 'kivy']
[INFO ] Loaded recipe python (depends of ['python3'], optional are [])
[INFO ] Loaded recipe openssl (depends of [], optional are [])
[INFO ] Loaded recipe kivy (depends of ['sdl2', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'ios', 'pyobjus', 'python', 'host_setuptools3'], optional are [])
[INFO ] Loaded recipe python3 (depends of ['hostpython3', 'libffi', 'openssl'], optional are [])
[INFO ] Loaded recipe sdl2 (depends of [], optional are [])
[INFO ] Loaded recipe sdl2_image (depends of ['sdl2'], optional are [])
[INFO ] Loaded recipe sdl2_mixer (depends of ['sdl2'], optional are [])
[INFO ] Loaded recipe sdl2_ttf (depends of ['sdl2', 'freetype'], optional are [])
[INFO ] Loaded recipe ios (depends of ['python'], optional are [])
[INFO ] Loaded recipe pyobjus (depends of ['python'], optional are [])
[INFO ] Loaded recipe host_setuptools3 (depends of ['openssl', 'hostpython3'], optional are [])
[INFO ] Loaded recipe hostpython3 (depends of ['hostlibffi', 'hostopenssl'], optional are [])
[INFO ] Loaded recipe libffi (depends of [], optional are [])
[INFO ] Loaded recipe freetype (depends of [], optional are [])
[INFO ] Loaded recipe hostlibffi (depends of [], optional are [])
[INFO ] Loaded recipe hostopenssl (depends of [], optional are [])
[INFO ] Build order is ['freetype', 'hostlibffi', 'hostopenssl', 'libffi', 'openssl', 'sdl2', 'hostpython3', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'host_setuptools3', 'python3', 'python', 'ios', 'pyobjus', 'kivy']
[INFO ] Recipe order is ['freetype', 'hostlibffi', 'hostopenssl', 'libffi', 'openssl', 'sdl2', 'hostpython3', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'host_setuptools3', 'python3', 'ios', 'pyobjus', 'kivy']
[INFO ] Include dir added: {arch.arch}/freetype
[INFO ] Include dir added: {arch.arch}/hostlibffi
[INFO ] Include dir added: {arch.arch}/ffi
[INFO ] Include dir added: {arch.arch}/openssl
[INFO ] Include dir added: common/sdl2
[ERROR ] Wanted to use hostpython3
[ERROR ] but hostpython is already provided by hostpython2.
[ERROR ] You can have only one hostpython version compiled