Error when preparing MacOS for compiling iOS apps

220 views
Skip to first unread message

Henrik R.

unread,
Feb 20, 2021, 4:04:19 PM2/20/21
to Kivy users support
Hi!

On these 2 pages there are these (identical) instructions:

https://kivy.org/doc/stable/guide/packaging-ios.html :

You need to install some dependencies, like Cython, autotools, etc. We encourage you to use Homebrew to install those dependencies:

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


The first thing is to ensure you have run the following commands:

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

But the last command must be incomplete, because I get the following error. (I typed <enter> and 'q') Can any one help me, thank you?:

(venv) henrik@MBPtilhdeHenrik Geo-ESP % pip install |cython_install|

pipe pipe>

pipe pipe> q

zsh: command not found: cython_install

zsh: command not found: q

ERROR: You must give at least one requirement to install (see "pip help install")

(venv) henrik@MBPtilhdeHenrik Geo-ESP %


Dian Qi

unread,
Feb 20, 2021, 6:33:14 PM2/20/21
to Kivy users support
I believe you just type: $ pip install Cython

Henrik R.

unread,
Feb 21, 2021, 5:46:38 AM2/21/21
to Kivy users support
Yes. That makes sense. Thank you.

Henrik R.

unread,
Feb 21, 2021, 6:27:01 AM2/21/21
to Kivy users support
It's a bit confusing that there are about 5 Python-Kivy(-iOS) install guides (for MacOS)...
Two of them mention the need for compiling kivy-ios with 'toolchain'. One of them says:
$ toolchain build kivy
The other says:
$ toolchain build python3 kivy
(And you may need to compile more packages.)
Does the last command suggest that Python3 itself needs to be compiled? Isn't Python3 installed on MacOS?
(PS: I use a venv.)

Henrik R.

unread,
Feb 22, 2021, 7:20:37 AM2/22/21
to Kivy users support
I guess 'python3' in the command is simply to enforce the use of Python3 in the compilation, so I choose:

% toolchain build python3 kivy

I can report that in order for that compilation to work on my MacBook Pro 13" (mid 2012) running MacOS Catalina 10.15.7 I had to use these commands first:

% sudo xcode-select --switch /Applications/Xcode.app

because of:

xcrun: error: SDK "iphonesimulator" cannot be located

% brew install xz

because of:

/Users/henrik/Python-Kivy/Geo-ESP/build/hostpython3/x86_64/Python-3.8.2/Modules/_lzmamodule.c:17:10: fatal error:

[DEBUG ] 'lzma.h' file not found

[DEBUG ] #include <lzma.h>

% ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Tk.framework/Headers/X11 /usr/local/include/X11

because of:

/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/tk.h:86:11: fatal error:

[DEBUG ] 'X11/Xlib.h' file not found

[DEBUG ] # include <X11/Xlib.h>


PS: I find the output from toolchain extremely verbose. Something like Buildozer log level = 2. That should not be the default. I think.

Reply all
Reply to author
Forward
0 new messages