kivy / kivy-ios

Toolchain for compiling Python / Kivy / other libraries for iOS
https://kivy.org/docs/guide/packaging-ios.html
MIT License
781 stars 240 forks source link

MacOS toolchain build constantly failing (I think due to C extension errors) #901

Closed the-JACK-pot closed 6 months ago

the-JACK-pot commented 7 months ago

Versions

Describe the bug I have 3 folders which I'm using for this project: A folder dedicated to the python virtual environment, a folder dedicated to the Kivy Builds, and the folder containing the pre-build Kivy app in python. I'm currently trying to toolchain build python3 and Kivy. Regardless of what I try to build, however, the output (as shown below) is always the same.

To Reproduce This is the first time I've ever tried to build a Kivy application for iOS, so I'm afraid I don't know how to help reproduce the problem. Here's the toolchain status output:

audiostream  - Not built
click        - Not built
curly        - Not built
cymunk       - Not built
ffmpeg       - Not built
ffpyplayer   - Not built
flask        - Not built
freetype     - Build OK (built at 2024-03-20 22:50:38.753344)
hostopenssl  - Build OK (built at 2024-03-20 22:51:24.359019)
hostpython3  - Build OK (built at 2024-03-20 23:01:44.053676)
ios          - Not built
itsdangerous - Not built
jinja2       - Not built
kivent_core  - Not built
kivy         - Not built
kiwisolver   - Not built
libcurl      - Not built
libffi       - Build OK (built at 2024-03-20 22:54:32.531345)
libjpeg      - Build OK (built at 2024-03-20 22:55:13.519545)
libpng       - Build OK (built at 2024-03-20 22:56:02.149758)
libzbar      - Not built
markupsafe   - Not built
materialyoucolor - Not built
matplotlib   - Not built
netifaces    - Not built
numpy        - Not built
openssl      - Build OK (built at 2024-03-20 22:57:24.156832)
photolibrary - Not built
pillow       - Not built
plyer        - Not built
py3dns       - Not built
pycrypto     - Not built
pykka        - Not built
pyobjus      - Not built
python3      - Not built
pyyaml       - Not built
sdl2         - Build OK (built at 2024-03-20 22:58:10.556457)
sdl2_image   - Build OK (built at 2024-03-20 23:02:03.743875)
sdl2_mixer   - Build OK (built at 2024-03-20 23:02:23.058399)
sdl2_ttf     - Build OK (built at 2024-03-20 23:03:12.483293)
werkzeug     - Not built
zbarlight    - Not built

and toolchain build output (same output regardless of what is building).

Expected behavior The expected behaviour is a completed build, allowing me to convert my python code into an Xcode project.

Logs The following was produced with the command toolchain build python3 however the response is very similar if not identical to the response from the command toolchain build kivy or toolchain build python3 kivy

[DEBUG   ] #  include <readline/readline.h>
[DEBUG   ]            ^~~~~~~~~~~~~~~~~~~~~
[DEBUG   ] 1 error generated.
[DEBUG   ] building '_curses_panel' extension
[DEBUG   ] /var/folders/ql/v8cy15b11f5fwphjzv8jxcb40000gn/T/tmpeule7tkx -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -O3 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk -O3 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -DUSE_NDBM -I./Include -I. -I/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Include -I/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6 -c /Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/_dbmmodule.c -o build/temp.ios-aarch64-3.11/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/_dbmmodule.o
[DEBUG   ] In file included from /Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/_cursesmodule.c:119:
[DEBUG   ] ./Include/py_curses.h:36:10: fatal error: 'curses.h' file not found
[DEBUG   ] #include <curses.h>
[DEBUG   ]          ^~~~~~~~~~
[DEBUG   ] 1 error generated.
[DEBUG   ] building 'nis' extension
[DEBUG   ] /var/folders/ql/v8cy15b11f5fwphjzv8jxcb40000gn/T/tmpeule7tkx -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -O3 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk -O3 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include -I. -I/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Include -I/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6 -c /Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/nismodule.c -o build/temp.ios-aarch64-3.11/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/nismodule.o
[DEBUG   ] In file included from /Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/_curses_panel.c:15:
[DEBUG   ] ./Include/py_curses.h:36:10: fatal error: 'curses.h' file not found
[DEBUG   ] #include <curses.h>
[DEBUG   ]          ^~~~~~~~~~
[DEBUG   ] 1 error generated.
[DEBUG   ] building '_lzma' extension
[DEBUG   ] /var/folders/ql/v8cy15b11f5fwphjzv8jxcb40000gn/T/tmpeule7tkx -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -O3 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk -O3 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I/opt/homebrew/Cellar/xz/5.6.1/include -I./Include -I. -I/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Include -I/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6 -c /Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/_lzmamodule.c -o build/temp.ios-aarch64-3.11/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/_lzmamodule.o
[DEBUG   ] ld -arch arm64 -L/Users/jack/Desktop/KivyBuilds/dist/lib/iphoneos -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/lib -miphoneos-version-min=9.0 -undefined dynamic_lookup -O3 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk build/temp.ios-aarch64-3.11/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/_testmultiphase.o -L/Users/jack/Desktop/KivyBuilds/dist/lib/iphoneos -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/lib -o build/lib.ios-aarch64-3.11/_testmultiphase.cpython-311-darwin.so
[DEBUG   ] ld: unknown options: -miphoneos-version-min=9.0 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk
[DEBUG   ] building '_decimal' extension
[DEBUG   ] creating build/temp.ios-aarch64-3.11/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/_decimal
[DEBUG   ] /var/folders/ql/v8cy15b11f5fwphjzv8jxcb40000gn/T/tmpeule7tkx -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -O3 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk -O3 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -DCONFIG_64=1 -DANSI=1 -DHAVE_UINT128_T=1 -I./Modules/_decimal/libmpdec -I./Include -I. -I/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Include -I/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6 -c /Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/_decimal/_decimal.c -o build/temp.ios-aarch64-3.11/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/_decimal/_decimal.o
[DEBUG   ] /Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/nismodule.c:19:10: fatal error: 'rpcsvc/yp_prot.h' file not found
[DEBUG   ] #include <rpcsvc/yp_prot.h>
[DEBUG   ]          ^~~~~~~~~~~~~~~~~~
[DEBUG   ] 1 error generated.
[DEBUG   ] building '_multiprocessing' extension
[DEBUG   ] creating build/temp.ios-aarch64-3.11/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/_multiprocessing
[DEBUG   ] /var/folders/ql/v8cy15b11f5fwphjzv8jxcb40000gn/T/tmpeule7tkx -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -O3 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk -O3 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Modules/_multiprocessing -I./Include -I. -I/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Include -I/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6 -c /Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/_multiprocessing/multiprocessing.c -o build/temp.ios-aarch64-3.11/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/_multiprocessing/multiprocessing.o
[DEBUG   ] rm -f libpython3.11.a
[DEBUG   ] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar rcs libpython3.11.a Modules/getbuildinfo.o Parser/token.o  Parser/pegen.o Parser/pegen_errors.o Parser/action_helpers.o Parser/parser.o Parser/string_parser.o Parser/peg_api.o Parser/myreadline.o Parser/tokenizer.o Objects/abstract.o Objects/accu.o Objects/boolobject.o Objects/bytes_methods.o Objects/bytearrayobject.o Objects/bytesobject.o Objects/call.o Objects/capsule.o Objects/cellobject.o Objects/classobject.o Objects/codeobject.o Objects/complexobject.o Objects/descrobject.o Objects/enumobject.o Objects/exceptions.o Objects/genericaliasobject.o Objects/genobject.o Objects/fileobject.o Objects/floatobject.o Objects/frameobject.o Objects/funcobject.o Objects/interpreteridobject.o Objects/iterobject.o Objects/listobject.o Objects/longobject.o Objects/dictobject.o Objects/odictobject.o Objects/memoryobject.o Objects/methodobject.o Objects/moduleobject.o Objects/namespaceobject.o Objects/object.o Objects/obmalloc.o Objects/picklebufobject.o Objects/rangeobject.o Objects/setobject.o Objects/sliceobject.o Objects/structseq.o Objects/tupleobject.o Objects/typeobject.o Objects/unicodeobject.o Objects/unicodectype.o Objects/unionobject.o Objects/weakrefobject.o Python/_warnings.o Python/Python-ast.o Python/Python-tokenize.o Python/asdl.o Python/ast.o Python/ast_opt.o Python/ast_unparse.o Python/bltinmodule.o Python/ceval.o Python/codecs.o Python/compile.o Python/context.o Python/dynamic_annotations.o Python/errors.o Python/frame.o Python/frozenmain.o Python/future.o Python/getargs.o Python/getcompiler.o Python/getcopyright.o Python/getplatform.o Python/getversion.o Python/hamt.o Python/hashtable.o Python/import.o Python/importdl.o Python/initconfig.o Python/marshal.o Python/modsupport.o Python/mysnprintf.o Python/mystrtoul.o Python/pathconfig.o Python/preconfig.o Python/pyarena.o Python/pyctype.o Python/pyfpe.o Python/pyhash.o Python/pylifecycle.o Python/pymath.o Python/pystate.o Python/pythonrun.o Python/pytime.o Python/bootstrap_hash.o Python/specialize.o Python/structmember.o Python/symtable.o Python/sysmodule.o Python/thread.o Python/traceback.o Python/getopt.o Python/pystrcmp.o Python/pystrtod.o Python/pystrhex.o Python/dtoa.o Python/formatter_unicode.o Python/fileutils.o Python/suggestions.o Python/dynload_shlib.o     Modules/config.o Modules/main.o Modules/gcmodule.o Modules/_asynciomodule.o  Modules/_bisectmodule.o  Modules/_blake2/blake2module.o Modules/_blake2/blake2b_impl.o Modules/_blake2/blake2s_impl.o  Modules/_sqlite/blob.o Modules/_sqlite/connection.o Modules/_sqlite/cursor.o Modules/_sqlite/microprotocols.o Modules/_sqlite/module.o Modules/_sqlite/prepare_protocol.o Modules/_sqlite/row.o Modules/_sqlite/statement.o Modules/_sqlite/util.o  Modules/_bz2module.o  Modules/cjkcodecs/_codecs_cn.o  Modules/cjkcodecs/_codecs_hk.o  Modules/cjkcodecs/_codecs_iso2022.o  Modules/cjkcodecs/_codecs_jp.o  Modules/cjkcodecs/_codecs_kr.o  Modules/cjkcodecs/_codecs_tw.o  Modules/_contextvarsmodule.o  Modules/_cryptmodule.o  Modules/_csv.o  Modules/_datetimemodule.o  Modules/_elementtree.o   Modules/_hashopenssl.o  Modules/_heapqmodule.o  Modules/_json.o  Modules/_lsprof.o Modules/rotatingtree.o  Modules/md5module.o  Modules/cjkcodecs/multibytecodec.o  Modules/_opcode.o  Modules/_queuemodule.o  Modules/_pickle.o  Modules/_randommodule.o  Modules/sha1module.o  Modules/_sha3/sha3module.o  Modules/sha256module.o  Modules/sha512module.o  Modules/socketmodule.o  Modules/_ssl.o  Modules/_struct.o  Modules/arraymodule.o  Modules/audioop.o  Modules/binascii.o  Modules/fcntlmodule.o  Modules/grpmodule.o  Modules/cmathmodule.o  Modules/mathmodule.o  Modules/mmapmodule.o  Modules/expat/xmlparse.o Modules/expat/xmlrole.o Modules/expat/xmltok.o Modules/pyexpat.o  Modules/resource.o  Modules/selectmodule.o  Modules/syslogmodule.o  Modules/termios.o  Modules/unicodedata.o  Modules/zlibmodule.o  Modules/_ctypes/_ctypes_test.o  Modules/_testbuffer.o  Modules/_testinternalcapi.o  Modules/_testimportmultiple.o  Modules/_ctypes/_ctypes.o Modules/_ctypes/callbacks.o Modules/_ctypes/callproc.o Modules/_ctypes/stgdict.o Modules/_ctypes/cfield.o  Modules/atexitmodule.o  Modules/faulthandler.o  Modules/posixmodule.o  Modules/signalmodule.o  Modules/_tracemalloc.o  Modules/_codecsmodule.o  Modules/_collectionsmodule.o  Modules/errnomodule.o  Modules/_io/_iomodule.o Modules/_io/iobase.o Modules/_io/fileio.o Modules/_io/bytesio.o Modules/_io/bufferedio.o Modules/_io/textio.o Modules/_io/stringio.o  Modules/itertoolsmodule.o  Modules/_sre/sre.o  Modules/_threadmodule.o  Modules/timemodule.o  Modules/_weakref.o  Modules/_abc.o  Modules/_functoolsmodule.o  Modules/_localemodule.o  Modules/_operator.o  Modules/_stat.o  Modules/symtablemodule.o  Modules/pwdmodule.o  Modules/xxsubtype.o Python/deepfreeze/deepfreeze.o Modules/getpath.o Python/frozen.o
[DEBUG   ] ld -arch arm64 -L/Users/jack/Desktop/KivyBuilds/dist/lib/iphoneos -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/lib -miphoneos-version-min=9.0 -undefined dynamic_lookup -O3 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk build/temp.ios-aarch64-3.11/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/_posixsubprocess.o -L/Users/jack/Desktop/KivyBuilds/dist/lib/iphoneos -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/lib -o build/lib.ios-aarch64-3.11/_posixsubprocess.cpython-311-darwin.so
[DEBUG   ] ld -arch arm64 -L/Users/jack/Desktop/KivyBuilds/dist/lib/iphoneos -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/lib -miphoneos-version-min=9.0 -undefined dynamic_lookup -O3 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk build/temp.ios-aarch64-3.11/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/_xxtestfuzz/_xxtestfuzz.o build/temp.ios-aarch64-3.11/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/_xxtestfuzz/fuzzer.o -L/Users/jack/Desktop/KivyBuilds/dist/lib/iphoneos -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/lib -o build/lib.ios-aarch64-3.11/_xxtestfuzz.cpython-311-darwin.so
[DEBUG   ] ld: unknown options: -miphoneos-version-min=9.0 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk
[DEBUG   ] building '_posixshmem' extension
[DEBUG   ] /var/folders/ql/v8cy15b11f5fwphjzv8jxcb40000gn/T/tmpeule7tkx -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -O3 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk -O3 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Modules/_multiprocessing -I./Include -I. -I/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Include -I/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6 -c /Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/_multiprocessing/posixshmem.c -o build/temp.ios-aarch64-3.11/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/_multiprocessing/posixshmem.o
[DEBUG   ] ld: unknown options: -miphoneos-version-min=9.0 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk
[DEBUG   ] building '_uuid' extension
[DEBUG   ] /var/folders/ql/v8cy15b11f5fwphjzv8jxcb40000gn/T/tmpeule7tkx -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -O3 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk -O3 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include -I. -I/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Include -I/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6 -c /Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/_uuidmodule.c -o build/temp.ios-aarch64-3.11/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/_uuidmodule.o
[DEBUG   ] /var/folders/ql/v8cy15b11f5fwphjzv8jxcb40000gn/T/tmpeule7tkx -arch arm64 -L/Users/jack/Desktop/KivyBuilds/dist/lib/iphoneos -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/lib -miphoneos-version-min=9.0 -undefined dynamic_lookup     -o python.exe Programs/python.o Modules/getbuildinfo.o Parser/token.o  Parser/pegen.o Parser/pegen_errors.o Parser/action_helpers.o Parser/parser.o Parser/string_parser.o Parser/peg_api.o Parser/myreadline.o Parser/tokenizer.o Objects/abstract.o Objects/accu.o Objects/boolobject.o Objects/bytes_methods.o Objects/bytearrayobject.o Objects/bytesobject.o Objects/call.o Objects/capsule.o Objects/cellobject.o Objects/classobject.o Objects/codeobject.o Objects/complexobject.o Objects/descrobject.o Objects/enumobject.o Objects/exceptions.o Objects/genericaliasobject.o Objects/genobject.o Objects/fileobject.o Objects/floatobject.o Objects/frameobject.o Objects/funcobject.o Objects/interpreteridobject.o Objects/iterobject.o Objects/listobject.o Objects/longobject.o Objects/dictobject.o Objects/odictobject.o Objects/memoryobject.o Objects/methodobject.o Objects/moduleobject.o Objects/namespaceobject.o Objects/object.o Objects/obmalloc.o Objects/picklebufobject.o Objects/rangeobject.o Objects/setobject.o Objects/sliceobject.o Objects/structseq.o Objects/tupleobject.o Objects/typeobject.o Objects/unicodeobject.o Objects/unicodectype.o Objects/unionobject.o Objects/weakrefobject.o Python/_warnings.o Python/Python-ast.o Python/Python-tokenize.o Python/asdl.o Python/ast.o Python/ast_opt.o Python/ast_unparse.o Python/bltinmodule.o Python/ceval.o Python/codecs.o Python/compile.o Python/context.o Python/dynamic_annotations.o Python/errors.o Python/frame.o Python/frozenmain.o Python/future.o Python/getargs.o Python/getcompiler.o Python/getcopyright.o Python/getplatform.o Python/getversion.o Python/hamt.o Python/hashtable.o Python/import.o Python/importdl.o Python/initconfig.o Python/marshal.o Python/modsupport.o Python/mysnprintf.o Python/mystrtoul.o Python/pathconfig.o Python/preconfig.o Python/pyarena.o Python/pyctype.o Python/pyfpe.o Python/pyhash.o Python/pylifecycle.o Python/pymath.o Python/pystate.o Python/pythonrun.o Python/pytime.o Python/bootstrap_hash.o Python/specialize.o Python/structmember.o Python/symtable.o Python/sysmodule.o Python/thread.o Python/traceback.o Python/getopt.o Python/pystrcmp.o Python/pystrtod.o Python/pystrhex.o Python/dtoa.o Python/formatter_unicode.o Python/fileutils.o Python/suggestions.o Python/dynload_shlib.o     Modules/config.o Modules/main.o Modules/gcmodule.o Modules/_asynciomodule.o  Modules/_bisectmodule.o  Modules/_blake2/blake2module.o Modules/_blake2/blake2b_impl.o Modules/_blake2/blake2s_impl.o  Modules/_sqlite/blob.o Modules/_sqlite/connection.o Modules/_sqlite/cursor.o Modules/_sqlite/microprotocols.o Modules/_sqlite/module.o Modules/_sqlite/prepare_protocol.o Modules/_sqlite/row.o Modules/_sqlite/statement.o Modules/_sqlite/util.o  Modules/_bz2module.o  Modules/cjkcodecs/_codecs_cn.o  Modules/cjkcodecs/_codecs_hk.o  Modules/cjkcodecs/_codecs_iso2022.o  Modules/cjkcodecs/_codecs_jp.o  Modules/cjkcodecs/_codecs_kr.o  Modules/cjkcodecs/_codecs_tw.o  Modules/_contextvarsmodule.o  Modules/_cryptmodule.o  Modules/_csv.o  Modules/_datetimemodule.o  Modules/_elementtree.o   Modules/_hashopenssl.o  Modules/_heapqmodule.o  Modules/_json.o  Modules/_lsprof.o Modules/rotatingtree.o  Modules/md5module.o  Modules/cjkcodecs/multibytecodec.o  Modules/_opcode.o  Modules/_queuemodule.o  Modules/_pickle.o  Modules/_randommodule.o  Modules/sha1module.o  Modules/_sha3/sha3module.o  Modules/sha256module.o  Modules/sha512module.o  Modules/socketmodule.o  Modules/_ssl.o  Modules/_struct.o  Modules/arraymodule.o  Modules/audioop.o  Modules/binascii.o  Modules/fcntlmodule.o  Modules/grpmodule.o  Modules/cmathmodule.o  Modules/mathmodule.o  Modules/mmapmodule.o  Modules/expat/xmlparse.o Modules/expat/xmlrole.o Modules/expat/xmltok.o Modules/pyexpat.o  Modules/resource.o  Modules/selectmodule.o  Modules/syslogmodule.o  Modules/termios.o  Modules/unicodedata.o  Modules/zlibmodule.o  Modules/_ctypes/_ctypes_test.o  Modules/_testbuffer.o  Modules/_testinternalcapi.o  Modules/_testimportmultiple.o  Modules/_ctypes/_ctypes.o Modules/_ctypes/callbacks.o Modules/_ctypes/callproc.o Modules/_ctypes/stgdict.o Modules/_ctypes/cfield.o  Modules/atexitmodule.o  Modules/faulthandler.o  Modules/posixmodule.o  Modules/signalmodule.o  Modules/_tracemalloc.o  Modules/_codecsmodule.o  Modules/_collectionsmodule.o  Modules/errnomodule.o  Modules/_io/_iomodule.o Modules/_io/iobase.o Modules/_io/fileio.o Modules/_io/bytesio.o Modules/_io/bufferedio.o Modules/_io/textio.o Modules/_io/stringio.o  Modules/itertoolsmodule.o  Modules/_sre/sre.o  Modules/_threadmodule.o  Modules/timemodule.o  Modules/_weakref.o  Modules/_abc.o  Modules/_functoolsmodule.o  Modules/_localemodule.o  Modules/_operator.o  Modules/_stat.o  Modules/symtablemodule.o  Modules/pwdmodule.o  Modules/xxsubtype.o Python/deepfreeze/deepfreeze.o Modules/getpath.o Python/frozen.o -ldl  -lpthread   -L/opt/homebrew/Cellar/libb2/0.98.1/lib -lb2   -L./../Support/BZip2 -lbz2          -lm    -lssl                -lssl   -lm -lz   -lm -lm         -lz -lm                            -lm
[DEBUG   ] /var/folders/ql/v8cy15b11f5fwphjzv8jxcb40000gn/T/tmpeule7tkx -arch arm64 -L/Users/jack/Desktop/KivyBuilds/dist/lib/iphoneos -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/lib -miphoneos-version-min=9.0 -undefined dynamic_lookup     -o Programs/_testembed Programs/_testembed.o Modules/getbuildinfo.o Parser/token.o  Parser/pegen.o Parser/pegen_errors.o Parser/action_helpers.o Parser/parser.o Parser/string_parser.o Parser/peg_api.o Parser/myreadline.o Parser/tokenizer.o Objects/abstract.o Objects/accu.o Objects/boolobject.o Objects/bytes_methods.o Objects/bytearrayobject.o Objects/bytesobject.o Objects/call.o Objects/capsule.o Objects/cellobject.o Objects/classobject.o Objects/codeobject.o Objects/complexobject.o Objects/descrobject.o Objects/enumobject.o Objects/exceptions.o Objects/genericaliasobject.o Objects/genobject.o Objects/fileobject.o Objects/floatobject.o Objects/frameobject.o Objects/funcobject.o Objects/interpreteridobject.o Objects/iterobject.o Objects/listobject.o Objects/longobject.o Objects/dictobject.o Objects/odictobject.o Objects/memoryobject.o Objects/methodobject.o Objects/moduleobject.o Objects/namespaceobject.o Objects/object.o Objects/obmalloc.o Objects/picklebufobject.o Objects/rangeobject.o Objects/setobject.o Objects/sliceobject.o Objects/structseq.o Objects/tupleobject.o Objects/typeobject.o Objects/unicodeobject.o Objects/unicodectype.o Objects/unionobject.o Objects/weakrefobject.o Python/_warnings.o Python/Python-ast.o Python/Python-tokenize.o Python/asdl.o Python/ast.o Python/ast_opt.o Python/ast_unparse.o Python/bltinmodule.o Python/ceval.o Python/codecs.o Python/compile.o Python/context.o Python/dynamic_annotations.o Python/errors.o Python/frame.o Python/frozenmain.o Python/future.o Python/getargs.o Python/getcompiler.o Python/getcopyright.o Python/getplatform.o Python/getversion.o Python/hamt.o Python/hashtable.o Python/import.o Python/importdl.o Python/initconfig.o Python/marshal.o Python/modsupport.o Python/mysnprintf.o Python/mystrtoul.o Python/pathconfig.o Python/preconfig.o Python/pyarena.o Python/pyctype.o Python/pyfpe.o Python/pyhash.o Python/pylifecycle.o Python/pymath.o Python/pystate.o Python/pythonrun.o Python/pytime.o Python/bootstrap_hash.o Python/specialize.o Python/structmember.o Python/symtable.o Python/sysmodule.o Python/thread.o Python/traceback.o Python/getopt.o Python/pystrcmp.o Python/pystrtod.o Python/pystrhex.o Python/dtoa.o Python/formatter_unicode.o Python/fileutils.o Python/suggestions.o Python/dynload_shlib.o     Modules/config.o Modules/main.o Modules/gcmodule.o Modules/_asynciomodule.o  Modules/_bisectmodule.o  Modules/_blake2/blake2module.o Modules/_blake2/blake2b_impl.o Modules/_blake2/blake2s_impl.o  Modules/_sqlite/blob.o Modules/_sqlite/connection.o Modules/_sqlite/cursor.o Modules/_sqlite/microprotocols.o Modules/_sqlite/module.o Modules/_sqlite/prepare_protocol.o Modules/_sqlite/row.o Modules/_sqlite/statement.o Modules/_sqlite/util.o  Modules/_bz2module.o  Modules/cjkcodecs/_codecs_cn.o  Modules/cjkcodecs/_codecs_hk.o  Modules/cjkcodecs/_codecs_iso2022.o  Modules/cjkcodecs/_codecs_jp.o  Modules/cjkcodecs/_codecs_kr.o  Modules/cjkcodecs/_codecs_tw.o  Modules/_contextvarsmodule.o  Modules/_cryptmodule.o  Modules/_csv.o  Modules/_datetimemodule.o  Modules/_elementtree.o   Modules/_hashopenssl.o  Modules/_heapqmodule.o  Modules/_json.o  Modules/_lsprof.o Modules/rotatingtree.o  Modules/md5module.o  Modules/cjkcodecs/multibytecodec.o  Modules/_opcode.o  Modules/_queuemodule.o  Modules/_pickle.o  Modules/_randommodule.o  Modules/sha1module.o  Modules/_sha3/sha3module.o  Modules/sha256module.o  Modules/sha512module.o  Modules/socketmodule.o  Modules/_ssl.o  Modules/_struct.o  Modules/arraymodule.o  Modules/audioop.o  Modules/binascii.o  Modules/fcntlmodule.o  Modules/grpmodule.o  Modules/cmathmodule.o  Modules/mathmodule.o  Modules/mmapmodule.o  Modules/expat/xmlparse.o Modules/expat/xmlrole.o Modules/expat/xmltok.o Modules/pyexpat.o  Modules/resource.o  Modules/selectmodule.o  Modules/syslogmodule.o  Modules/termios.o  Modules/unicodedata.o  Modules/zlibmodule.o  Modules/_ctypes/_ctypes_test.o  Modules/_testbuffer.o  Modules/_testinternalcapi.o  Modules/_testimportmultiple.o  Modules/_ctypes/_ctypes.o Modules/_ctypes/callbacks.o Modules/_ctypes/callproc.o Modules/_ctypes/stgdict.o Modules/_ctypes/cfield.o  Modules/atexitmodule.o  Modules/faulthandler.o  Modules/posixmodule.o  Modules/signalmodule.o  Modules/_tracemalloc.o  Modules/_codecsmodule.o  Modules/_collectionsmodule.o  Modules/errnomodule.o  Modules/_io/_iomodule.o Modules/_io/iobase.o Modules/_io/fileio.o Modules/_io/bytesio.o Modules/_io/bufferedio.o Modules/_io/textio.o Modules/_io/stringio.o  Modules/itertoolsmodule.o  Modules/_sre/sre.o  Modules/_threadmodule.o  Modules/timemodule.o  Modules/_weakref.o  Modules/_abc.o  Modules/_functoolsmodule.o  Modules/_localemodule.o  Modules/_operator.o  Modules/_stat.o  Modules/symtablemodule.o  Modules/pwdmodule.o  Modules/xxsubtype.o Python/deepfreeze/deepfreeze.o Modules/getpath.o Python/frozen.o -ldl  -lpthread   -L/opt/homebrew/Cellar/libb2/0.98.1/lib -lb2   -L./../Support/BZip2 -lbz2          -lm    -lssl                -lssl   -lm -lz   -lm -lm         -lz -lm                            -lm
[DEBUG   ] /var/folders/ql/v8cy15b11f5fwphjzv8jxcb40000gn/T/tmpeule7tkx -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -O3 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk -O3 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Modules/_multiprocessing -I./Include -I. -I/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Include -I/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6 -c /Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/_multiprocessing/semaphore.c -o build/temp.ios-aarch64-3.11/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/_multiprocessing/semaphore.o
[DEBUG   ] ld: warning: -undefined dynamic_lookup is deprecated on iOS
[DEBUG   ] ld: warning: -undefined dynamic_lookup is deprecated on iOS
[DEBUG   ] ld: warning: ignoring duplicate libraries: '-lm', '-lssl', '-lz'
[DEBUG   ] ld: warning: search path './../Support/BZip2' not found
[DEBUG   ] ld: warning: -undefined dynamic_lookup is deprecated on iOS
[DEBUG   ] ld: warning: -undefined dynamic_lookup is deprecated on iOS
[DEBUG   ] ld: warning: ignoring duplicate libraries: '-lm', '-lssl', '-lz'
[DEBUG   ] ld: warning: search path './../Support/BZip2' not found
[DEBUG   ] ld -arch arm64 -L/Users/jack/Desktop/KivyBuilds/dist/lib/iphoneos -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/lib -miphoneos-version-min=9.0 -undefined dynamic_lookup -O3 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk build/temp.ios-aarch64-3.11/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/_dbmmodule.o -L/Users/jack/Desktop/KivyBuilds/dist/lib/iphoneos -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/lib -o build/lib.ios-aarch64-3.11/_dbm.cpython-311-darwin.so
[DEBUG   ] ld: building for 'iOS', but linking in dylib (/opt/homebrew/Cellar/libb2/0.98.1/lib/libb2.1.dylib) built for 'macOS'
[DEBUG   ] ld: building for 'iOS', but linking in dylib (/opt/homebrew/Cellar/libb2/0.98.1/lib/libb2.1.dylib) built for 'macOS'
[DEBUG   ] ld: unknown options: -miphoneos-version-min=9.0 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk
[DEBUG   ] clang: error: linker command failed with exit code 1 (use -v to see invocation)
[DEBUG   ] clang: error: linker command failed with exit code 1 (use -v to see invocation)
[DEBUG   ] building 'xxlimited' extension
[DEBUG   ] /var/folders/ql/v8cy15b11f5fwphjzv8jxcb40000gn/T/tmpeule7tkx -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -O3 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk -O3 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include -I. -I/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Include -I/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6 -c /Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/xxlimited.c -o build/temp.ios-aarch64-3.11/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/xxlimited.o
[DEBUG   ] make: *** [Programs/_testembed] Error 1
[DEBUG   ] make: *** Waiting for unfinished jobs....
[DEBUG   ] make: *** [python.exe] Error 1
[DEBUG   ] ld -arch arm64 -L/Users/jack/Desktop/KivyBuilds/dist/lib/iphoneos -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/lib -miphoneos-version-min=9.0 -undefined dynamic_lookup -O3 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk build/temp.ios-aarch64-3.11/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/_xxsubinterpretersmodule.o -L/Users/jack/Desktop/KivyBuilds/dist/lib/iphoneos -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/lib -o build/lib.ios-aarch64-3.11/_xxsubinterpreters.cpython-311-darwin.so
[DEBUG   ] ld: unknown options: -miphoneos-version-min=9.0 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk
[DEBUG   ] building 'xxlimited_35' extension
[DEBUG   ] /var/folders/ql/v8cy15b11f5fwphjzv8jxcb40000gn/T/tmpeule7tkx -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -O3 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk -O3 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include -I. -I/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Include -I/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6 -c /Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/xxlimited_35.c -o build/temp.ios-aarch64-3.11/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/xxlimited_35.o
[DEBUG   ] ld -arch arm64 -L/Users/jack/Desktop/KivyBuilds/dist/lib/iphoneos -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/lib -miphoneos-version-min=9.0 -undefined dynamic_lookup -O3 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk build/temp.ios-aarch64-3.11/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/_uuidmodule.o -L/Users/jack/Desktop/KivyBuilds/dist/lib/iphoneos -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/lib -o build/lib.ios-aarch64-3.11/_uuid.cpython-311-darwin.so
[DEBUG   ] /Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/_multiprocessing/semaphore.c:355:23: error: call to undeclared function 'sem_timedwait'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
[DEBUG   ]                 res = sem_timedwait(self->handle, &deadline);
[DEBUG   ]                       ^
[DEBUG   ] /Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/_multiprocessing/semaphore.c:355:23: note: did you mean 'sem_trywait'?
[DEBUG   ] /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/sys/semaphore.h:58:5: note: 'sem_trywait' declared here
[DEBUG   ] int sem_trywait(sem_t *);
[DEBUG   ]     ^
[DEBUG   ] 1 error generated.
[DEBUG   ] ld: unknown options: -miphoneos-version-min=9.0 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk
[DEBUG   ] ld -arch arm64 -L/Users/jack/Desktop/KivyBuilds/dist/lib/iphoneos -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/lib -miphoneos-version-min=9.0 -undefined dynamic_lookup -O3 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk build/temp.ios-aarch64-3.11/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/_multiprocessing/posixshmem.o -L/Users/jack/Desktop/KivyBuilds/dist/lib/iphoneos -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/lib -o build/lib.ios-aarch64-3.11/_posixshmem.cpython-311-darwin.so
[DEBUG   ] ld: unknown options: -miphoneos-version-min=9.0 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk
[DEBUG   ] ld -arch arm64 -L/Users/jack/Desktop/KivyBuilds/dist/lib/iphoneos -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/lib -miphoneos-version-min=9.0 -undefined dynamic_lookup -O3 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk build/temp.ios-aarch64-3.11/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/_testclinic.o -L/Users/jack/Desktop/KivyBuilds/dist/lib/iphoneos -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/lib -o build/lib.ios-aarch64-3.11/_testclinic.cpython-311-darwin.so
[DEBUG   ] ld -arch arm64 -L/Users/jack/Desktop/KivyBuilds/dist/lib/iphoneos -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/lib -miphoneos-version-min=9.0 -undefined dynamic_lookup -O3 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk build/temp.ios-aarch64-3.11/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/xxlimited.o -L/Users/jack/Desktop/KivyBuilds/dist/lib/iphoneos -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/lib -o build/lib.ios-aarch64-3.11/xxlimited.cpython-311-darwin.so
[DEBUG   ] ld: unknown options: -miphoneos-version-min=9.0 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk
[DEBUG   ] ld: unknown options: -miphoneos-version-min=9.0 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk
[DEBUG   ] ld -arch arm64 -L/Users/jack/Desktop/KivyBuilds/dist/lib/iphoneos -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/lib -miphoneos-version-min=9.0 -undefined dynamic_lookup -O3 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk build/temp.ios-aarch64-3.11/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/xxlimited_35.o -L/Users/jack/Desktop/KivyBuilds/dist/lib/iphoneos -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/lib -o build/lib.ios-aarch64-3.11/xxlimited_35.cpython-311-darwin.so
[DEBUG   ] ld: unknown options: -miphoneos-version-min=9.0 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk
[DEBUG   ] ld -arch arm64 -L/Users/jack/Desktop/KivyBuilds/dist/lib/iphoneos -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/lib -miphoneos-version-min=9.0 -undefined dynamic_lookup -O3 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk build/temp.ios-aarch64-3.11/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/_zoneinfo.o -L/Users/jack/Desktop/KivyBuilds/dist/lib/iphoneos -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/lib -o build/lib.ios-aarch64-3.11/_zoneinfo.cpython-311-darwin.so
[DEBUG   ] ld: unknown options: -miphoneos-version-min=9.0 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk
[DEBUG   ] ld -arch arm64 -L/Users/jack/Desktop/KivyBuilds/dist/lib/iphoneos -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/lib -miphoneos-version-min=9.0 -undefined dynamic_lookup -O3 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk build/temp.ios-aarch64-3.11/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/_lzmamodule.o -L/opt/homebrew/Cellar/xz/5.6.1/lib -L/Users/jack/Desktop/KivyBuilds/dist/lib/iphoneos -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/lib -llzma -o build/lib.ios-aarch64-3.11/_lzma.cpython-311-darwin.so
[DEBUG   ] ld: unknown options: -miphoneos-version-min=9.0 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk
[DEBUG   ] ld -arch arm64 -L/Users/jack/Desktop/KivyBuilds/dist/lib/iphoneos -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/lib -miphoneos-version-min=9.0 -undefined dynamic_lookup -O3 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk build/temp.ios-aarch64-3.11/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/_testcapimodule.o -L/Users/jack/Desktop/KivyBuilds/dist/lib/iphoneos -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/lib -o build/lib.ios-aarch64-3.11/_testcapi.cpython-311-darwin.so
[DEBUG   ] ld: unknown options: -miphoneos-version-min=9.0 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk
[DEBUG   ] ld -arch arm64 -L/Users/jack/Desktop/KivyBuilds/dist/lib/iphoneos -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/lib -miphoneos-version-min=9.0 -undefined dynamic_lookup -O3 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk build/temp.ios-aarch64-3.11/Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Modules/_decimal/_decimal.o Modules/_decimal/libmpdec/libmpdec.a -L/Users/jack/Desktop/KivyBuilds/dist/lib/iphoneos -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/lib -lm -o build/lib.ios-aarch64-3.11/_decimal.cpython-311-darwin.so
[DEBUG   ] ld: unknown options: -miphoneos-version-min=9.0 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk
[DEBUG   ]
[DEBUG   ] The necessary bits to build these optional modules were not found:
[DEBUG   ] _gdbm                _tkinter             ossaudiodev
[DEBUG   ] To find the necessary bits, look in setup.py in detect_modules() for the module's name.
[DEBUG   ]
[DEBUG   ]
[DEBUG   ] The following modules found by detect_modules() in setup.py, have been
[DEBUG   ] built by the Makefile instead, as configured by the Setup files:
[DEBUG   ] _asyncio             _bisect              _blake2
[DEBUG   ] _bz2                 _codecs_cn           _codecs_hk
[DEBUG   ] _codecs_iso2022      _codecs_jp           _codecs_kr
[DEBUG   ] _codecs_tw           _contextvars         _crypt
[DEBUG   ] _csv                 _ctypes              _ctypes_test
[DEBUG   ] _datetime            _elementtree         _hashlib
[DEBUG   ] _heapq               _json                _lsprof
[DEBUG   ] _md5                 _multibytecodec      _opcode
[DEBUG   ] _pickle              _queue               _random
[DEBUG   ] _sha1                _sha256              _sha3
[DEBUG   ] _sha512              _socket              _sqlite3
[DEBUG   ] _ssl                 _struct              _testbuffer
[DEBUG   ] _testimportmultiple   _testinternalcapi    array
[DEBUG   ] audioop              binascii             cmath
[DEBUG   ] fcntl                grp                  math
[DEBUG   ] mmap                 pyexpat              resource
[DEBUG   ] select               syslog               termios
[DEBUG   ] unicodedata          zlib
[DEBUG   ]
[DEBUG   ]
[DEBUG   ] Failed to build these modules:
[DEBUG   ] _curses              _curses_panel        _dbm
[DEBUG   ] _decimal             _lzma                _multiprocessing
[DEBUG   ] _posixshmem          _posixsubprocess     _statistics
[DEBUG   ] _testcapi            _testclinic          _testmultiphase
[DEBUG   ] _typing              _uuid                _xxsubinterpreters
[DEBUG   ] _xxtestfuzz          _zoneinfo            nis
[DEBUG   ] readline             spwd                 xxlimited
[DEBUG   ] xxlimited_35
[DEBUG   ]
[DEBUG   ] running build_scripts
[DEBUG   ] creating build/scripts-3.11
[DEBUG   ] copying and adjusting /Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Tools/scripts/pydoc3 -> build/scripts-3.11
[DEBUG   ] copying and adjusting /Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Tools/scripts/idle3 -> build/scripts-3.11
[DEBUG   ] copying and adjusting /Users/jack/Desktop/KivyBuilds/build/python3/iphoneos-arm64/Python-3.11.6/Tools/scripts/2to3 -> build/scripts-3.11
[DEBUG   ] changing mode of build/scripts-3.11/pydoc3 from 644 to 755
[DEBUG   ] changing mode of build/scripts-3.11/idle3 from 644 to 755
[DEBUG   ] changing mode of build/scripts-3.11/2to3 from 644 to 755
[DEBUG   ] renaming build/scripts-3.11/pydoc3 to build/scripts-3.11/pydoc3.11
[DEBUG   ] renaming build/scripts-3.11/idle3 to build/scripts-3.11/idle3.11
[DEBUG   ] renaming build/scripts-3.11/2to3 to build/scripts-3.11/2to3-3.11
Exception in thread background thread for pid 36565:
Traceback (most recent call last):
  File "/opt/homebrew/Cellar/python@3.12/3.12.2_1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/threading.py", line 1073, in _bootstrap_inner
    self.run()
  File "/opt/homebrew/Cellar/python@3.12/3.12.2_1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/threading.py", line 1010, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/jack/Desktop/_environment/venv_grooveID/lib/python3.12/site-packages/sh.py", line 1639, in wrap
    fn(*rgs, **kwargs)
  File "/Users/jack/Desktop/_environment/venv_grooveID/lib/python3.12/site-packages/sh.py", line 2641, in background_thread
    handle_exit_code(exit_code)
  File "/Users/jack/Desktop/_environment/venv_grooveID/lib/python3.12/site-packages/sh.py", line 2332, in fn
    return self.command.handle_command_exit_code(exit_code)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jack/Desktop/_environment/venv_grooveID/lib/python3.12/site-packages/sh.py", line 826, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_2:

  RAN: /usr/bin/make -j10 'CFLAGS=-O3 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk'

  STDOUT:
Makefile:2823: warning: overriding commands for target `Modules/expat/xmlparse.o'
Makefile:1031: warning: ignoring old commands for target `Modules/expat/xmlparse.o'
Makefile:2824: warning: overriding commands for target `Modules/expat/xmlrole.o'
Makefile:1034: warning: ignoring old commands for target `Modules/expat/xmlrole.o'
Makefile:2825: warning: overriding commands for target `Modules/expat/xmltok.o'
Makefile:1037: warning: ignoring old commands for target `Modules/expat/xmltok.o'
/var/folders/ql/v8cy15b11f5fwphjzv8jxcb40000gn/T/tmpeule7tkx -c -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -O3 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/d... (368765 more, please see e.stdout)

  STDERR:

Traceback (most recent call last):
  File "/Users/jack/Desktop/_environment/venv_grooveID/bin/toolchain", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Users/jack/Desktop/_environment/venv_grooveID/lib/python3.12/site-packages/kivy_ios/toolchain.py", line 1670, in main
    ToolchainCL()
  File "/Users/jack/Desktop/_environment/venv_grooveID/lib/python3.12/site-packages/kivy_ios/toolchain.py", line 1407, in __init__
    getattr(self, args.command)()
  File "/Users/jack/Desktop/_environment/venv_grooveID/lib/python3.12/site-packages/kivy_ios/toolchain.py", line 1483, in build
    build_recipes(args.recipe, ctx)
  File "/Users/jack/Desktop/_environment/venv_grooveID/lib/python3.12/site-packages/kivy_ios/toolchain.py", line 1231, in build_recipes
    recipe.execute()
  File "/Users/jack/Desktop/_environment/venv_grooveID/lib/python3.12/site-packages/kivy_ios/toolchain.py", line 758, in execute
    self.build_all()
  File "/Users/jack/Desktop/_environment/venv_grooveID/lib/python3.12/site-packages/kivy_ios/toolchain.py", line 78, in _cache_execution
    f(self, *args, **kwargs)
  File "/Users/jack/Desktop/_environment/venv_grooveID/lib/python3.12/site-packages/kivy_ios/toolchain.py", line 858, in build_all
    self.build(plat)
  File "/Users/jack/Desktop/_environment/venv_grooveID/lib/python3.12/site-packages/kivy_ios/toolchain.py", line 78, in _cache_execution
    f(self, *args, **kwargs)
  File "/Users/jack/Desktop/_environment/venv_grooveID/lib/python3.12/site-packages/kivy_ios/toolchain.py", line 844, in build
    self.build_platform(plat)
  File "/Users/jack/Desktop/_environment/venv_grooveID/lib/python3.12/site-packages/kivy_ios/recipes/python3/__init__.py", line 117, in build_platform
    shprint(sh.make, self.ctx.concurrent_make, "CFLAGS={}".format(build_env["CFLAGS"]))
  File "/Users/jack/Desktop/_environment/venv_grooveID/lib/python3.12/site-packages/kivy_ios/toolchain.py", line 60, in shprint
    for line in cmd:
  File "/Users/jack/Desktop/_environment/venv_grooveID/lib/python3.12/site-packages/sh.py", line 882, in __next__
    self.wait()
  File "/Users/jack/Desktop/_environment/venv_grooveID/lib/python3.12/site-packages/sh.py", line 799, in wait
    self.handle_command_exit_code(exit_code)
  File "/Users/jack/Desktop/_environment/venv_grooveID/lib/python3.12/site-packages/sh.py", line 826, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_2:

  RAN: /usr/bin/make -j10 'CFLAGS=-O3 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/openssl -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk'

  STDOUT:
Makefile:2823: warning: overriding commands for target `Modules/expat/xmlparse.o'
Makefile:1031: warning: ignoring old commands for target `Modules/expat/xmlparse.o'
Makefile:2824: warning: overriding commands for target `Modules/expat/xmlrole.o'
Makefile:1034: warning: ignoring old commands for target `Modules/expat/xmlrole.o'
Makefile:2825: warning: overriding commands for target `Modules/expat/xmltok.o'
Makefile:1037: warning: ignoring old commands for target `Modules/expat/xmltok.o'
/var/folders/ql/v8cy15b11f5fwphjzv8jxcb40000gn/T/tmpeule7tkx -c -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -O3 -miphoneos-version-min=9.0 -I/Users/jack/Desktop/KivyBuilds/dist/include/iphoneos-arm64/ffi -I/Users/jack/Desktop/KivyBuilds/d... (368765 more, please see e.stdout)

  STDERR:

(venv_grooveID) jack@jacks-mbp KivyBuilds %

Additional context Currently using Cython==0.29.36 however I also tested it with the current version of Cython==3.0.0 (changed to 3.0.9 earlier today but didn't change the output). Kivy.org iOS page states that Cython=3.0.0 is required, but pip says Cython==0.29.36 is needed for Kivy-ios, so I don't know which to use. I've tried separating the folders from other code files. All three are isolated on my desktop and still no change. After activating the venv, all three folders clearly use the python environment located in the environments folder.

Any and all help is greatly appreciated thanks in advance! TLDR: Issue resolved by making sure libb2 installed by brew(due to packages like ffmpeg is interfering, remove it! or make sure it does not get picked in path.)

krille90 commented 7 months ago

Hey, does anybody have an idea on how to fix this? Having the same problem.

tcaduser commented 7 months ago

it looks like there are some header files missing, like curses.h. Maybe some stuff didn't get downloaded and the build system thinks it did (caching). Maybe you can clean out the build directories and start over. I think "toolchain clean" might work.

the-JACK-pot commented 7 months ago

it looks like there are some header files missing, like curses.h. Maybe some stuff didn't get downloaded and the build system thinks it did (caching). Maybe you can clean out the build directories and start over. I think "toolchain clean" might work.

Thanks for the reply. I did as you suggested, however the output is the same as before and the toolchain status remains unchanged. The error log suggests that 3 packages (_gdbm, _tkinter, and ossaudiodev) weren't found and therefore not built, however I found all 3 within the 'Modules' folder located inside the python3 folder belonging to the main build folder. I don't suppose that could be the root of the problem? I've never used the C language or C++ language so my knowledge with those files is limited

Edit: In case it helps, I tried toolchain clean and then toolchain build kivy in both the regular terminal and then the Rosetta Terminal, both resulting in the same output and same toolchain status output

apollovy commented 7 months ago

I bet the real issue is here:

[DEBUG   ] ld: building for 'iOS-simulator', but linking in dylib (/usr/local/Cellar/libb2/0.98.1/lib/libb2.1.dylib) built for 'macOS'
[DEBUG   ] ld: building for 'iOS-simulator', but linking in dylib (/usr/local/Cellar/libb2/0.98.1/lib/libb2.1.dylib) built for 'macOS'
[DEBUG   ] clang: error: linker command failed with exit code 1 (use -v to see invocation)
[DEBUG   ] clang: error: linker command failed with exit code 1 (use -v to see invocation)

Also I see compilation errors:

[DEBUG   ] /Users/apollov/work/RiftWizard/RiftWizard/.buildozer/ios/platform/kivy-ios/build/python3/iphonesimulator-x86_64/Python-3.11.6/Modules/_multiprocessing/semaphore.c:355:23: error: call to undeclared function 'sem_timedwait'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
[DEBUG   ]                 res = sem_timedwait(self->handle, &deadline);
[DEBUG   ]                       ^
[DEBUG   ] /Users/apollov/work/RiftWizard/RiftWizard/.buildozer/ios/platform/kivy-ios/build/python3/iphonesimulator-x86_64/Python-3.11.6/Modules/_multiprocessing/semaphore.c:355:23: note: did you mean 'sem_trywait'?
[DEBUG   ] /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk/usr/include/sys/semaphore.h:58:5: note: 'sem_trywait' declared here
[DEBUG   ] int sem_trywait(sem_t *);
[DEBUG   ]     ^
[DEBUG   ] 1 error generated.

And there are more errors up there building various parts.

Got same issue, will try to figure out where should the actual linking target be.

rahulkumaratphilips commented 7 months ago

I too have encountered the same error, disappointed to see no response from the repo managers yet. Hope we'll have a solid resolution soon.

tcaduser commented 7 months ago

it looks like it is in a bad state where not all of the packages got downloaded as part of the build process. are you on an Intel or arm64 build machine? i can only test on arm64.

rahulkumaratphilips commented 7 months ago

I am on Intel. @tcaduser, is it the same behaviour with you too?

the-JACK-pot commented 7 months ago

I'm using an arm64 machine (M2 Apple chip), however I tried this on a Rosetta terminal to emulate an intel machine and I got the same error response

rahulkumaratphilips commented 7 months ago

@Retr0Hax894, does it work on M2 macs?

tcaduser commented 7 months ago

I got a clean build on a m2 macbook from the terminal using these commands:

 python3 -mvenv venv
 source venv/bin/activate
 pip install kivy-ios
 toolchain build python3
causeri3 commented 7 months ago

I am facing that issue on a M2. Got it working on a M3. Both with kivy-ios 2024.3.17 Cython 3.0.0 Python 3.11.6 . I suspect that the problem is that I did not manage to proper purge all old kivy-ios and toolchain components. - There was a lot of installing, distcleaning and uninstalling in different directories involved - at some stage I had conflicts due to two build folders in different directories. Also facing buggy behaviour needing to rename XCode while the build, which is not an issue on my M3 with a cleaner installation.

Here a cut-out from the logs:

[DEBUG ] running build_scripts [DEBUG ] creating build/scripts-3.11 [DEBUG ] copying and adjusting /Users/v/code/build/python3/iphoneos-arm64/Python-3.11.6/Tools/scripts/pydoc3 -> build/scripts-3.11 [DEBUG ] copying and adjusting /Users/v/code/build/python3/iphoneos-arm64/Python-3.11.6/Tools/scripts/idle3 -> build/scripts-3.11 [DEBUG ] copying and adjusting /Users/v/code/build/python3/iphoneos-arm64/Python-3.11.6/Tools/scripts/2to3 -> build/scripts-3.11 [DEBUG ] changing mode of build/scripts-3.11/pydoc3 from 644 to 755 [DEBUG ] changing mode of build/scripts-3.11/idle3 from 644 to 755 [DEBUG ] changing mode of build/scripts-3.11/2to3 from 644 to 755 [DEBUG ] renaming build/scripts-3.11/pydoc3 to build/scripts-3.11/pydoc3.11 [DEBUG ] renaming build/scripts-3.11/idle3 to build/scripts-3.11/idle3.11 [DEBUG ] renaming build/scripts-3.11/2to3 to build/scripts-3.11/2to3-3.11 Exception in thread background thread for pid 45241: Traceback (most recent call last): File "/opt/homebrew/Cellar/python@3.11/3.11.6_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 1045, in _bootstrap_inner self.run() File "/opt/homebrew/Cellar/python@3.11/3.11.6_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/threading.py", line 982, in run self._target(*self._args, *self._kwargs) File "/Users/v/my_venv/lib/python3.11/site-packages/sh.py", line 1639, in wrap fn(rgs, **kwargs) File "/Users/v/my_venv/lib/python3.11/site-packages/sh.py", line 2641, in background_thread handle_exit_code(exit_code) File "/Users/v/my_venv/lib/python3.11/site-packages/sh.py", line 2332, in fn return self.command.handle_command_exit_code(exit_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/v/my_venv/lib/python3.11/site-packages/sh.py", line 826, in handle_command_exit_code raise exc sh.ErrorReturnCode_2:

RAN: /usr/bin/make -j8 'CFLAGS=-O3 -miphoneos-version-min=9.0 -I/Users/v/code/dist/include/iphoneos-arm64/ffi -I/Users/v/code/dist/include/common/libpng -I/Users/v/code/dist/include/iphoneos-arm64/openssl -I/Users/v/code/dist/include/common/sdl2 -I/Users/v/code/dist/include/common/sdl2_image -I/Users/v/code/dist/include/common/sdl2_mixer -I/Users/v/code/dist/include/common/sdl2_ttf -I/Users/v/code/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk'

STDOUT: Makefile:2823: warning: overriding commands for target Modules/expat/xmlparse.o' Makefile:1031: warning: ignoring old commands for targetModules/expat/xmlparse.o' Makefile:2824: warning: overriding commands for target Modules/expat/xmlrole.o' Makefile:1034: warning: ignoring old commands for targetModules/expat/xmlrole.o' Makefile:2825: warning: overriding commands for target Modules/expat/xmltok.o' Makefile:1037: warning: ignoring old commands for targetModules/expat/xmltok.o' /var/folders/8h/3nl4f07n02s8n9dx1_6rzq_w0000gp/T/tmpm8psgg1h -c -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -O3 -miphoneos-version-min=9.0 -I/Users/v/code/dist/include/iphoneos-arm64/ffi -I/Users/v/code/dist/include/comm... (497963 more, please see e.stdout)

STDERR:

Traceback (most recent call last): File "/Users/v/my_venv/bin/toolchain", line 8, in sys.exit(main()) ^^^^^^ File "/Users/v/my_venv/lib/python3.11/site-packages/kivy_ios/toolchain.py", line 1670, in main ToolchainCL() File "/Users/v/my_venv/lib/python3.11/site-packages/kivy_ios/toolchain.py", line 1407, in init getattr(self, args.command)() File "/Users/v/my_venv/lib/python3.11/site-packages/kivy_ios/toolchain.py", line 1483, in build build_recipes(args.recipe, ctx) File "/Users/v/my_venv/lib/python3.11/site-packages/kivy_ios/toolchain.py", line 1231, in build_recipes recipe.execute() File "/Users/v/my_venv/lib/python3.11/site-packages/kivy_ios/toolchain.py", line 758, in execute self.build_all() File "/Users/v/my_venv/lib/python3.11/site-packages/kivy_ios/toolchain.py", line 78, in _cache_execution f(self, *args, *kwargs) File "/Users/v/my_venv/lib/python3.11/site-packages/kivy_ios/toolchain.py", line 858, in build_all self.build(plat) File "/Users/v/my_venv/lib/python3.11/site-packages/kivy_ios/toolchain.py", line 78, in _cache_execution f(self, args, **kwargs) File "/Users/v/my_venv/lib/python3.11/site-packages/kivy_ios/toolchain.py", line 844, in build self.build_platform(plat) File "/Users/v/my_venv/lib/python3.11/site-packages/kivy_ios/recipes/python3/init.py", line 117, in build_platform shprint(sh.make, self.ctx.concurrent_make, "CFLAGS={}".format(build_env["CFLAGS"])) File "/Users/v/my_venv/lib/python3.11/site-packages/kivy_ios/toolchain.py", line 60, in shprint for line in cmd: File "/Users/v/my_venv/lib/python3.11/site-packages/sh.py", line 882, in next self.wait() File "/Users/v/my_venv/lib/python3.11/site-packages/sh.py", line 799, in wait self.handle_command_exit_code(exit_code) File "/Users/v/my_venv/lib/python3.11/site-packages/sh.py", line 826, in handle_command_exit_code raise exc sh.ErrorReturnCode_2:

RAN: /usr/bin/make -j8 'CFLAGS=-O3 -miphoneos-version-min=9.0 -I/Users/v/code/dist/include/iphoneos-arm64/ffi -I/Users/v/code/dist/include/common/libpng -I/Users/v/code/dist/include/iphoneos-arm64/openssl -I/Users/v/code/dist/include/common/sdl2 -I/Users/v/code/dist/include/common/sdl2_image -I/Users/v/code/dist/include/common/sdl2_mixer -I/Users/v/code/dist/include/common/sdl2_ttf -I/Users/v/code/dist/include/iphoneos-arm64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk'

STDOUT: Makefile:2823: warning: overriding commands for target Modules/expat/xmlparse.o' Makefile:1031: warning: ignoring old commands for targetModules/expat/xmlparse.o' Makefile:2824: warning: overriding commands for target Modules/expat/xmlrole.o' Makefile:1034: warning: ignoring old commands for targetModules/expat/xmlrole.o' Makefile:2825: warning: overriding commands for target Modules/expat/xmltok.o' Makefile:1037: warning: ignoring old commands for targetModules/expat/xmltok.o' /var/folders/8h/3nl4f07n02s8n9dx1_6rzq_w0000gp/T/tmpm8psgg1h -c -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -O3 -miphoneos-version-min=9.0 -I/Users/v/code/dist/include/iphoneos-arm64/ffi -I/Users/v/code/dist/include/comm... (497963 more, please see e.stdout)

rahulkumaratphilips commented 7 months ago

Good to hear that it works on M3. Is it possible to build pandas and fastAPI libraries too using Kivy? I'll really appreciate if you can share the static libraries of numpy, pandas and fastAPI with me as I am unable to build those on my mac.

causeri3 commented 7 months ago

Good to hear that it works on M3. Is it possible to build pandas and fastAPI libraries too using Kivy? I'll really appreciate if you can share the static libraries of numpy, pandas and fastAPI with me as I am unable to build those on my mac.

Not sure what you mean. For pandas and fastapi there are no recipes atm. I would do the pandas calculations with numpy and look for a pure python api package which one can install with for example: toolchain pip install py-pure-client. Numpy did work for me toolchain build numpy... Once this problem is fixed.

rahulkumaratphilips commented 7 months ago

I was requesting for the output of the toolchain build numpy, assuming it creates a .a file for numpy or xcframework. If that's the case, then I can directly import it into my project. Would you be kind enough to build that numpy library and share the .a or xcframework file with me.

causeri3 commented 7 months ago

I was requesting for the output of the toolchain build numpy, assuming it creates a .a file for numpy or xcframework. If that's the case, then I can directly import it into my project. Would you be kind enough to build that numpy library and share the .a or xcframework file with me.

Knock yourself out libnumpy.xcframework.zip

the-JACK-pot commented 7 months ago

I got a clean build on a m2 macbook from the terminal using these commands:

 python3 -mvenv venv
 source venv/bin/activate
 pip install kivy-ios
 toolchain build python3

I just cleaned the toolchain, followed those commands, and the error is the same. I don't suppose you know/remember what python version you had at the time?

tcaduser commented 7 months ago

I got a clean build on a m2 macbook from the terminal using these commands:

 python3 -mvenv venv
 source venv/bin/activate
 pip install kivy-ios
 toolchain build python3

I just cleaned the toolchain, followed those commands, and the error is the same. I don't suppose you know/remember what python version you had at the time?

This is using the system Python 3.9.6 in /usr/bin/python3 to create the virtual environment. The hostpython and ios python created is 3.11.6.

./dist/hostpython3/lib/python3.11/config-3.11-darwin/libpython3.11.a
./dist/hostpython3/lib/libpython3.11.a
./dist/xcframework/libpython3.11.xcframework/ios-arm64-simulator/libpython3.11.a
./dist/xcframework/libpython3.11.xcframework/ios-arm64/libpython3.11.a
./dist/lib/iphoneos/libpython3.11.a
./dist/lib/iphonesimulator/libpython3.11.a

I purposely keep /opt/homebrew/bin out of my path to prevent unexpected executables from being run accidentally.

tcaduser commented 7 months ago

If you do a cleanup, make sure you removed:

.cache
dist
build

in the directory you executed the toolchain command. .cache is hidden in the terminal unless you use ls -a to reveal it.

tcaduser commented 7 months ago
% xcode-select -v
xcode-select version 2406.

And I have Xcode 15.3 app installed.

% xcodebuild -showsdks
DriverKit SDKs:
    DriverKit 23.4                  -sdk driverkit23.4

iOS SDKs:
    iOS 17.4                        -sdk iphoneos17.4

iOS Simulator SDKs:
    Simulator - iOS 17.4            -sdk iphonesimulator17.4

macOS SDKs:
    macOS 14.4                      -sdk macosx14.4
    macOS 14.4                      -sdk macosx14.4
causeri3 commented 7 months ago

Still believe there must be another problem. Could there be anything missing while the cleaning, any environmental variables? Any better way to purge than what I have done?

I am religiously cleaning the three folders @tcaduser mentioned. With toolchain distclean as well as by hand - didn't help. Pip uninstalled kivy-ios, deleted the whole venv - still the same issue.

It doesn't make sense that the problem is related to the python version. The whole setup on the M2 worked before I decided to start everything from scratch due to another issue.

Anyway: My xcode-select versions on both computers is 2405, python 3.11.6 & 3.12.2, XCode 15.3 & XCode 15.1, the xcodebuild -showsdksoutput is the same as above.

the-JACK-pot commented 7 months ago
% xcode-select -v
xcode-select version 2406.

And I have Xcode 15.3 app installed.

% xcodebuild -showsdks
DriverKit SDKs:
  DriverKit 23.4                  -sdk driverkit23.4

iOS SDKs:
  iOS 17.4                        -sdk iphoneos17.4

iOS Simulator SDKs:
  Simulator - iOS 17.4            -sdk iphonesimulator17.4

macOS SDKs:
  macOS 14.4                      -sdk macosx14.4
  macOS 14.4                      -sdk macosx14.4

I checked those same commands and I have the exact same SDKs and Xcode-select version.

Although the output logs for each build can be long, I noticed something unusual when it built the _sqlite3 module:

[DEBUG   ] ./Modules/_sqlite/connection.c:1172:14: warning: 'sqlite3_create_window_function' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]
[DEBUG   ]         rc = sqlite3_create_window_function(self->db, name, num_params, flags,
[DEBUG   ]              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[DEBUG   ] /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/sqlite3.h:5533:16: note: 'sqlite3_create_window_function' has been marked as being introduced in iOS 13.0 here, but the deployment target is iOS 9.0.0
[DEBUG   ] SQLITE_API int sqlite3_create_window_function(
[DEBUG   ]                ^
[DEBUG   ] ./Modules/_sqlite/connection.c:1172:14: note: enclose 'sqlite3_create_window_function' in a __builtin_available check to silence this warning
[DEBUG   ]         rc = sqlite3_create_window_function(self->db, name, num_params, flags,
[DEBUG   ]              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[DEBUG   ] ./Modules/_sqlite/connection.c:1180:14: warning: 'sqlite3_create_window_function' is only available on iOS 13.0 or newer [-Wunguarded-availability-new]
[DEBUG   ]         rc = sqlite3_create_window_function(self->db, name, num_params, flags,
[DEBUG   ]              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[DEBUG   ] /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/sqlite3.h:5533:16: note: 'sqlite3_create_window_function' has been marked as being introduced in iOS 13.0 here, but the deployment target is iOS 9.0.0
[DEBUG   ] SQLITE_API int sqlite3_create_window_function(
[DEBUG   ]                ^
[DEBUG   ] ./Modules/_sqlite/connection.c:1180:14: note: enclose 'sqlite3_create_window_function' in a __builtin_available check to silence this warning
[DEBUG   ]         rc = sqlite3_create_window_function(self->db, name, num_params, flags,
[DEBUG   ]              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[DEBUG   ] ./Modules/_sqlite/connection.c:2109:26: warning: 'sqlite3_serialize' is only available on iOS 12.0 or newer [-Wunguarded-availability-new]
[DEBUG   ]     data = (const char *)sqlite3_serialize(self->db, name, &size, flags);
[DEBUG   ]                          ^~~~~~~~~~~~~~~~~
[DEBUG   ] /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/sqlite3.h:10281:27: note: 'sqlite3_serialize' has been marked as being introduced in iOS 12.0 here, but the deployment target is iOS 9.0.0
[DEBUG   ] SQLITE_API unsigned char *sqlite3_serialize(
[DEBUG   ]                           ^
[DEBUG   ] ./Modules/_sqlite/connection.c:2109:26: note: enclose 'sqlite3_serialize' in a __builtin_available check to silence this warning
[DEBUG   ]     data = (const char *)sqlite3_serialize(self->db, name, &size, flags);
[DEBUG   ]                          ^~~~~~~~~~~~~~~~~
[DEBUG   ] ./Modules/_sqlite/connection.c:2112:30: warning: 'sqlite3_serialize' is only available on iOS 12.0 or newer [-Wunguarded-availability-new]
[DEBUG   ]         data = (const char *)sqlite3_serialize(self->db, name, &size, flags);
[DEBUG   ]                              ^~~~~~~~~~~~~~~~~
[DEBUG   ] /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/sqlite3.h:10281:27: note: 'sqlite3_serialize' has been marked as being introduced in iOS 12.0 here, but the deployment target is iOS 9.0.0
[DEBUG   ] SQLITE_API unsigned char *sqlite3_serialize(
[DEBUG   ]                           ^
[DEBUG   ] ./Modules/_sqlite/connection.c:2112:30: note: enclose 'sqlite3_serialize' in a __builtin_available check to silence this warning
[DEBUG   ]         data = (const char *)sqlite3_serialize(self->db, name, &size, flags);
[DEBUG   ]                              ^~~~~~~~~~~~~~~~~
[DEBUG   ] ./Modules/_sqlite/connection.c:2184:10: warning: 'sqlite3_deserialize' is only available on iOS 12.0 or newer [-Wunguarded-availability-new]
[DEBUG   ]     rc = sqlite3_deserialize(self->db, name, buf, size, size, flags);
[DEBUG   ]          ^~~~~~~~~~~~~~~~~~~
[DEBUG   ] /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/sqlite3.h:10338:16: note: 'sqlite3_deserialize' has been marked as being introduced in iOS 12.0 here, but the deployment target is iOS 9.0.0
[DEBUG   ] SQLITE_API int sqlite3_deserialize(
[DEBUG   ]                ^
[DEBUG   ] ./Modules/_sqlite/connection.c:2184:10: note: enclose 'sqlite3_deserialize' in a __builtin_available check to silence this warning
[DEBUG   ]     rc = sqlite3_deserialize(self->db, name, buf, size, size, flags);
[DEBUG   ]          ^~~~~~~~~~~~~~~~~~~
[DEBUG   ] ./Modules/_sqlite/module.c:123:10: warning: 'sqlite3_enable_shared_cache' is deprecated: first deprecated in iOS 5.0 - Not supported [-Wdeprecated-declarations]
[DEBUG   ]     rc = sqlite3_enable_shared_cache(do_enable);
[DEBUG   ]          ^
[DEBUG   ] /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/sqlite3.h:6872:16: note: 'sqlite3_enable_shared_cache' has been explicitly marked deprecated here
[DEBUG   ] SQLITE_API int sqlite3_enable_shared_cache(int);
[DEBUG   ]

Seems to be an error regarding the iOS deployment target - I know how to change that when an Xcode project is made, but how do I change that when building Kivy?

Also I discovered the following error too, which relates to one of the files mentioned at the end of the log (Modules/expat/xmlparse.o) so I'm including that error here too, in case it's of any usefulness:

[DEBUG   ] ./Modules/expat/xmlparse.c:3116:9: warning: code will never be executed [-Wunreachable-code]
[DEBUG   ]         parser->m_characterDataHandler(parser->m_handlerArg, parser->m_dataBuf,
[DEBUG   ]         ^~~~~~
[DEBUG   ] ./Modules/expat/xmlparse.c:3115:16: note: silence by adding parentheses to mark code as explicitly dead
[DEBUG   ]       else if (0 && parser->m_characterDataHandler)
[DEBUG   ]                ^
[DEBUG   ]                /* DISABLES CODE */ ( )
[DEBUG   ] ./Modules/expat/xmlparse.c:4059:9: warning: code will never be executed [-Wunreachable-code]
[DEBUG   ]         parser->m_characterDataHandler(parser->m_handlerArg, parser->m_dataBuf,
[DEBUG   ]         ^~~~~~
[DEBUG   ] ./Modules/expat/xmlparse.c:4058:16: note: silence by adding parentheses to mark code as explicitly dead
[DEBUG   ]       else if (0 && parser->m_characterDataHandler)
[DEBUG   ]                ^
[DEBUG   ]                /* DISABLES CODE */ ( )
tcaduser commented 7 months ago

Maybe it is something related to:

 % xcrun --sdk iphoneos --show-sdk-path
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk

because toolchain.py uses this command to set the SDK paths.

I am also getting the same compiler warnings as @Retr0Hax894 for sqlite and xmlparse.

tcaduser commented 7 months ago

It looks like you may have the same problem as issue https://github.com/kivy/kivy-ios/issues/905. I think that somehow the build scripts are getting confused and trying to link against libraries in homebrew

tcaduser commented 7 months ago

https://github.com/kivy/kivy-ios/issues/905#issuecomment-2039718106

causeri3 commented 7 months ago

Went on a rampage - reset with xcode-select -r, deleted xcode, deleted CommandLineTools, toolchain distclean, deleted the virtual environment, reinstalled all - same output. 😔 As last resort, taking the dist, .cache and build folders form the other computer worked.

Plus, I could substitute the old workaround of renaming XCode with a new workaround of changing the path from

% xcode-select -p
/Applications/Xcode.app/Contents/Developer

after creating the ios repository and before the first XCode build with

sudo xcode-select --switch /Library/Developer/CommandLineTools

That behavior started once I installed kivy-ios from the master branch before the last release and build matplotlib with toolchain.

Not sure if those two issues are related, but it seems to me as if some left-overs of the old kivy-ios installation or toolchain builds are being missed while the uninstalling.

the-JACK-pot commented 6 months ago

I just tried to build Kivy again and noticed something interesting in the build logs. Sadly it's too far into the build logs to retrieve, but it was roughly something like: downloading (link to python 3.11.6) (I do remember that it was specifically version 3.11.6).

I have python 3.12 downloaded. While I can download and use 3.11.6, a PEP document bringing forward the idea of separating python packages based off of the package manager they're installed from, and labelling such packages as being 'externally managed', was put forward to Homebrew. As of February this year, the idea was implemented so that packages were handled per the package manager that installed them, and as such only python 3.12 would be installed from Homebrew so that this change would be universal for all Homebrew users. So while I could change version, it wouldn't work alongside Homebrew. Would changing the python version to be downloaded when building help these python errors?

EDIT: The more up-to-date and maintained document -> https://packaging.python.org/en/latest/specifications/externally-managed-environments/#externally-managed-environments

the-JACK-pot commented 6 months ago

It looks like you may have the same problem as issue #905. I think that somehow the build scripts are getting confused and trying to link against libraries in homebrew

It took a good while to remove the libb2 package due to various dependencies, but after solving that it has finally built! I don't think I can thank you enough, it's been a very frustrating 3 weeks. I'm glad it's now fixed and I hope this will help anyone else that's stuck in the future.

thanks @tcaduser , and everyone else that contributed to this solution

causeri3 commented 6 months ago

It looks like you may have the same problem as issue #905. I think that somehow the build scripts are getting confused and trying to link against libraries in homebrew

brew uninstall —ignore-dependencies libb2

Worked for me as well. Still puzzled to why, since libb2 is on that computer since ages and the build ran many times through. But happy it's solved. Thanks @tcaduser

tcaduser commented 6 months ago

I'm glad it worked out for everyone. It is very surprising that brew can interfere in that way. I've always made sure that brew stays out of my PATH, and used the macOS python instead of the one from homebrew.

gzqyl commented 6 months ago

I think I am luck, though I know the issue is homebrew libb2 is for mac which should not be included, I do not know how to find a libb2 for ios, the lucky is now I know just remove the libb2 will be ok, tks

xucian commented 5 months ago

thanks for this! anyone knows why uninstalling libb2 this solves it?

Update: I get:

Error: Refusing to uninstall /usr/local/Cellar/libb2/0.98.1 because it is required by ffmpeg, gstreamer, libarchive and tesseract, which are currently installed.

so it doesn't sound like a viable solution

do we have to set CPPFLAGS,CFLAGS,LDFLAGS? if so, any docs on that? I'm on mac intel

tcaduser commented 5 months ago

thanks for this! anyone knows why uninstalling libb2 this solves it?

Update: I get:

Error: Refusing to uninstall /usr/local/Cellar/libb2/0.98.1 because it is required by ffmpeg, gstreamer, libarchive and tesseract, which are currently installed.

so it doesn't sound like a viable solution

do we have to set CPPFLAGS,CFLAGS,LDFLAGS? if so, any docs on that? I'm on mac intel

One thing you can try is to make sure homebrew is not in your default PATH. Then its version of python packages cannot be found. This could be interfering with all of the other version of python that kivy-ios using.

tcaduser commented 5 months ago

I would look in your .zshrc .bashrc or .profile to make sure that homebrew is not there.

xucian commented 5 months ago

but isn't homebrew supposed to be the most used package manager on mac? if it's not on PATH, then how would I access it when I want to install anything? I'm a bit confused

or is it more like a workaround to remove it from the PATH temporarily only for the running program (Pycharm in my case)?

tcaduser commented 5 months ago

You can type the full path to whatever tool you want in the homebrew bin directory. I am just giving something to try. It looks to me like one of the recipes is looking for libbb2 and by finding it in your homebrew installation, is messing up. It is impossible for the compiler for the iOS to use a library compiled for macOS.

cristianmejiaarias commented 3 months ago

brew uninstall libb2

Remove the following folders build dist .cache

.cache is hidden

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

/usr/bin/xcodebuild -showsdks

toolchain build kivy

and tray

tcaduser commented 3 months ago

What I don't understand is that kivy-ios compiles a hostpython, which should run instead of the one from homebrew? Perhaps the Homebrew python environment is polluting the hostpython environment?