Kivy iOS & Buildozer package (first time)

116 views
Skip to first unread message

Labbé Stéphane

unread,
Feb 7, 2025, 10:13:51 AM2/7/25
to Kivy users support
Hello,

I need help to package Kivy app using Buildozer.

I'm on a Mac (Sonoma 14.5), 

When I run buildozer iOS debug
I got this error:

# Command failed: ['/Library/Frameworks/Python.framework/Versions/3.12/bin/python3.12', 'toolchain.py', 'build', 'python3', 'kivy']

# ENVIRONMENT:

#     __CFBundleIdentifier = 'com.apple.Terminal'

#     TMPDIR = '/var/folders/h7/yfts140n7b5cv1rvj9hqfs0c0000gn/T/'

#     XPC_FLAGS = '0x0'

#     LaunchInstanceID = '72B7D5C6-E775-420F-A711-1F9A9C53FA69'

#     TERM = 'xterm-256color'

#     SSH_AUTH_SOCK = '/private/tmp/com.apple.launchd.uRmMUeYsYK/Listeners'

#     SECURITYSESSIONID = '186b5'

#     XPC_SERVICE_NAME = '0'

#     TERM_PROGRAM = 'Apple_Terminal'

#     TERM_PROGRAM_VERSION = '453'

#     TERM_SESSION_ID = '8F0EAA31-865C-48B8-9761-7E0FCF5095E3'

#     SHELL = '/bin/zsh'

#     HOME = '/Users/stephane'

#     LOGNAME = 'stephane'

#     USER = 'stephane'

#     PATH = '/opt/homebrew/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Library/Frameworks/Python.framework/Versions/3.12/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Library/TeX/texbin:/Users/stephane/.local/bin:/Users/stephane/.local/bin'

#     SHLVL = '1'

#     PWD = '/Users/stephane/kivy'

#     OLDPWD = '/Users/stephane'

#     HOMEBREW_PREFIX = '/opt/homebrew'

#     HOMEBREW_CELLAR = '/opt/homebrew/Cellar'

#     HOMEBREW_REPOSITORY = '/opt/homebrew'

#     INFOPATH = '/opt/homebrew/share/info:'

#     CC = '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang'

#     CXX = '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++'

#     LANG = 'fr_FR.UTF-8'

#     _ = '/Library/Frameworks/Python.framework/Versions/3.12/bin/buildozer'

#     __CF_USER_TEXT_ENCODING = '0x1F5:0x0:0x1'

# Buildozer failed to execute the last command

# The error might be hidden in the log above this error

# Please read the full log, and search for it before

# raising an issue with buildozer itself.

# In case of a bug report, please add a full log with log_level = 2


It seems to come from higher message in the log :

[DEBUG   ] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang  -I. -Iinclude -fPIC -arch arm64 -O3 -Wall -DL_ENDIAN -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DVPAES_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/usr/local/lib/engines-1.1\"" -D_REENTRANT -DNDEBUG  -MMD -MF crypto/aes/aes_ige.d.tmp -MT crypto/aes/aes_ige.o -c -o crypto/aes/aes_ige.o crypto/aes/aes_ige.c

[DEBUG   ] In file included from apps/s_cb.capps/bf_prefix.c:crypto/aes/aes_ige.c:apps/s_socket.c1110::10crypto/aes/aes_core.c:: 1039:: 10fatal error: ::11:10::10:

[DEBUG   ]   crypto/aes/aes_ecb.cfatal error: include/internal/cryptlib.h:fatal error: 13:fatal error: 'stdio.h' file not found:1110:: apps/apps.c10: fatal error: fatal error: 'stdlib.h' file not found

[DEBUG   ] 'stdio.h' file not found

[DEBUG   ] 

[DEBUG   ] :18:10: 'assert.h' file not found'stdio.h' file not found

[DEBUG   ] 

[DEBUG   ] 'assert.h' file not foundfatal error: 'stdio.h' file not found

[DEBUG   ] 

[DEBUG   ]          111010 |  |  |    ##i   i11   #13i |    #nnc18 | l | u#i#39nicn  | #incclludein cduc<slludted e i<odna.usel c<sl<ueuade <ssdted i<os.thdlib.hrh>s

[DEBUG   ]       dt>

[DEBUG   ]       d| io         ^~~~~~~~~.

[DEBUG   ] h>e 

[DEBUG   ]       | <stdio.hs| t>.

[DEBUG   ]       >

[DEBUG   ]       |          ^~~~~~~~~         ^~~~~~~~~

[DEBUG   ]           ^~~~~~~~~~| he>r

[DEBUG   ]       | t

[DEBUG   ] .         ^~~~~~~~~~h

[DEBUG   ] 

[DEBUG   ]          ^~~~~~~~~>

[DEBUG   ]       |          ^~~~~~~~~~

[DEBUG   ] 

[DEBUG   ] In file included from apps/opt.c:9:

[DEBUG   ] In file included from apps/apps.h:13:

[DEBUG   ] In file included from ./e_os.h:16:

[DEBUG   ] In file included from include/openssl/e_os2.h:243:

[DEBUG   ] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/16/include/inttypes.h:21:15: fatal error: 'inttypes.h' file not found

[DEBUG   ]    21 | #inclIn file included from ude_next <inttyapps/app_rand.cpes.h>

[DEBUG   ]       |               ^~~~~~~~~~~~

[DEBUG   ] :10:

[DEBUG   ] In file included from apps/apps.h:13:

[DEBUG   ] In file included from ./e_os.h:16:

[DEBUG   ] In file included from include/openssl/e_os2.h:243:

[DEBUG   ] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/16/include/inttypes.h:21:15: fatal error: 'inttypes.h' file not found

[DEBUG   ]    21 | #include_next <inttypes.h>

[DEBUG   ]       |               ^~~~~~~~~~~~

[DEBUG   ] 1 error generated.

[DEBUG   ] make[1]: *** [crypto/aes/aes_ecb.o] Error 1

[DEBUG   ] make[1]: *** Waiting for unfinished jobs....

[DEBUG   ] 1 error generated.

[DEBUG   ] make[1]: *** [crypto/aes/aes_core.o] Error 1

[DEBUG   ] 1 error generated.

[DEBUG   ] make[1]: *** [crypto/aes/aes_ige.o] Error 1

[DEBUG   ] 1 error generated.

[DEBUG   ] make[1]: *** [apps/app_rand.o] Error 1

[DEBUG   ] 1 error generated.

[DEBUG   ] 1 error generated.

[DEBUG   ] 1 error generated.

[DEBUG   ] make[1]: *** [apps/s_socket.o] Error 1

[DEBUG   ] make[1]: *** [apps/bf_prefix.o] Error 1

[DEBUG   ] make[1]: *** [apps/opt.o] Error 1

[DEBUG   ] 1 error generated.

[DEBUG   ] 1 error generated.

[DEBUG   ] make[1]: *** [apps/apps.o] Error 1

[DEBUG   ] make[1]: *** [apps/s_cb.o] Error 1

[DEBUG   ] make: *** [build_libs] Error 2

Exception in thread background thread for pid 28462:


I do not find where the problem come from ...
Can you help me please ?

Stéphane.


Mathias Lindström (kuzeyron)

unread,
Feb 14, 2025, 11:45:14 AM2/14/25
to Kivy users support
I'm not so sure if Buildozer is able to compile iOS packages any longer as it seems to be broken. But this approach should help you: https://kivy.org/doc/stable/guide/packaging-ios.html

Labbé Stéphane

unread,
Mar 30, 2025, 5:23:56 AM3/30/25
to Kivy users support
When I use this procedure I get the following error : 

[DEBUG   ] crypto/aes/aes_ecb.capps/s_cb.c::11apps/bf_prefix.c:In file included from :10crypto/aes/aes_ige.c:apps/apps.c10::

[DEBUG   ] crypto/aes/aes_core.c:include/internal/cryptlib.h39:10: fatal error: :10'stdio.h' file not found

[DEBUG   ] 1018:   10 | 10#:i nfatal error: 13'assert.h' file not foundapps/s_socket.c::11:10: fatal error: 

[DEBUG   ] 'stdio.h' file not found

[DEBUG   ] ::    1011 | #include :< s11   c39::fatal error: tfatal error: d | io.h#>i

[DEBUG   ] nclu       10: 'assert.h' file not found| 

[DEBUG   ] l   ud10de <aes s<setrt'stdio.h' file not found.

[DEBUG   ]  |          ^~~~~~~~~   11 | fatal error: #inchd>i'stdio.h' file not found


I can't find what is going wrong with the packaging.
Is there someone that can give me advices ?

Thank you,
Reply all
Reply to author
Forward
0 new messages