Im attempting to compile easy kivy app to IOS.
System:
-Sonoma 14.6
-Apple M3 Chip
fundamental.py
:
from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.button import Button
from kivy.uix.label import Label
class MyApp(App):
def construct(self):
self.label = Label(textual content="Good day!")
button = Button(textual content="Change")
button.bind(on_press=self.update_label)
structure = BoxLayout(orientation='vertical')
structure.add_widget(self.label)
structure.add_widget(button)
return structure
def update_label(self, occasion):
self.label.textual content = "Button pressed!"
if __name__ == '__main__':
MyApp().run()
As documentation says:
-Created digital env. close to fundamental.py: python3.9 -m venv venv
-Switching to venv: . venv/bin/activate
-Putting in kivy-ios: pip set up kivy-ios
(kivy-ios 2024.3.17)
-Putting in kivy: pip set up kivy==2.3.0
After these, python fundamental.py
returns me app efficiently.
Put in Xcode (model 16.1) from AppStore with iOS&macOS platform instruments.
With xcode-select --install
& brew set up autoconf automake libtool pkg-config
& brew hyperlink libtool
put in a few of parts too.
My libffi recipe model is:
[INFO ] Utilizing the bundled model for recipe 'libffi' libffi 3.4.4
When I attempt to construct easy app with toolchain construct python3 kivy
I get error about libffi.
[INFO ] Recipe order is ['hostopenssl', 'libffi', 'libpng', 'openssl', 'sdl2', 'hostpython3', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'python3', 'ios', 'pyobjus', 'kivy']
hostopenssl
efficiently downloading&putting in.
libffi
efficiently downloading however can not putting in:
Operating shell: [INFO ] Operating Shell: /usr/bin/tar ('-C', '/Customers/mertmehmetaraz/synapp/Test1/construct/libffi/iphoneos-arm64', '-xv', '-z', '-f', '/Customers/mertmehmetaraz/synapp/Test1/.cache/libffi-libffi-3.4.4.tar.gz') {'_iter': True, '_out_bufsize': 1, '_err_to_out': True}
...
...
[Succesfully OUTPUTS HERE]
...
...
[DEBUG ] configure: error: in `/Customers/mertmehmetaraz/synapp/Test1/construct/libffi/iphoneos-arm64/libffi-3.4.4/build_iphoneos-armv7':
[DEBUG ] configure: error: C compiler can not create executables
[DEBUG ] See `config.log' for extra particulars
[DEBUG ] Traceback (most up-to-date name final):
[DEBUG ] File "/Customers/mertmehmetaraz/synapp/Test1/construct/libffi/iphoneos-arm64/libffi-3.4.4/generate-darwin-source-and-headers.py", line 314, in
[DEBUG ] generate_source_and_headers(
[DEBUG ] File "/Customers/mertmehmetaraz/synapp/Test1/construct/libffi/iphoneos-arm64/libffi-3.4.4/generate-darwin-source-and-headers.py", line 283, in generate_source_and_headers
[DEBUG ] build_target(ios_device_armv7_platform, platform_headers)
[DEBUG ] File "/Customers/mertmehmetaraz/synapp/Test1/construct/libffi/iphoneos-arm64/libffi-3.4.4/generate-darwin-source-and-headers.py", line 232, in build_target
[DEBUG ] subprocess.check_call(['../configure', '-host', platform.triple], env=env)
[DEBUG ] File "/decide/homebrew/Cellar/[email protected]/3.9.20/Frameworks/Python.framework/Variations/3.9/lib/python3.9/subprocess.py", line 373, in check_call
[DEBUG ] increase CalledProcessError(retcode, cmd)
[DEBUG ] subprocess.CalledProcessError: Command '['../configure', '-host', 'arm-apple-darwin11']' returned non-zero exit standing 77.
Exception in thread background thread for pid 68035:
Traceback (most up-to-date name final):
File "/decide/homebrew/Cellar/[email protected]/3.9.20/Frameworks/Python.framework/Variations/3.9/lib/python3.9/threading.py", line 980, in _bootstrap_inner
self.run()
File "/decide/homebrew/Cellar/[email protected]/3.9.20/Frameworks/Python.framework/Variations/3.9/lib/python3.9/threading.py", line 917, in run
self._target(*self._args, **self._kwargs)
File "/Customers/mertmehmetaraz/synapp/Test1/venv/lib/python3.9/site-packages/sh.py", line 1634, in wrap
fn(*rgs, **kwargs)
File "/Customers/mertmehmetaraz/synapp/Test1/venv/lib/python3.9/site-packages/sh.py", line 2636, in background_thread
handle_exit_code(exit_code)
File "/Customers/mertmehmetaraz/synapp/Test1/venv/lib/python3.9/site-packages/sh.py", line 2327, in fn
return self.command.handle_command_exit_code(exit_code)
File "/Customers/mertmehmetaraz/synapp/Test1/venv/lib/python3.9/site-packages/sh.py", line 821, in handle_command_exit_code
increase exc
sh.ErrorReturnCode_1:
RAN: /Customers/mertmehmetaraz/synapp/Test1/venv/bin/python3 generate-darwin-source-and-headers.py --only-ios
STDOUT:
Skipping i386
checking construct system kind... aarch64-apple-darwin23.6.0
checking host system kind... x86_64-apple-darwin13
checking goal system kind... x86_64-apple-darwin13
checking for gsed... sed
checking for a BSD-compatible set up... /usr/bin/set up -c
checking whether or not construct atmosphere is sane... sure
checking for x86_64-apple-darwin13-strip... no
checking for strip... strip
checking for a race-free mkdir -p... ../install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether or not make units $(MAKE)... sure
checking whether or not make helps nested variables... sure
checking for x86_64-apple-darwin13-gcc... xcrun -sdk iphonesimulator clang -target x86_64-apple-ios-simulator
chec... (21159 extra, please see e.stdout)
STDERR:
Traceback (most up-to-date name final):
File "/Customers/mertmehmetaraz/synapp/Test1/venv/bin/toolchain", line 8, in
sys.exit(fundamental())
File "/Customers/mertmehmetaraz/synapp/Test1/venv/lib/python3.9/site-packages/kivy_ios/toolchain.py", line 1670, in fundamental
ToolchainCL()
File "/Customers/mertmehmetaraz/synapp/Test1/venv/lib/python3.9/site-packages/kivy_ios/toolchain.py", line 1407, in __init__
getattr(self, args.command)()
File "/Customers/mertmehmetaraz/synapp/Test1/venv/lib/python3.9/site-packages/kivy_ios/toolchain.py", line 1483, in construct
build_recipes(args.recipe, ctx)
File "/Customers/mertmehmetaraz/synapp/Test1/venv/lib/python3.9/site-packages/kivy_ios/toolchain.py", line 1231, in build_recipes
recipe.execute()
File "/Customers/mertmehmetaraz/synapp/Test1/venv/lib/python3.9/site-packages/kivy_ios/toolchain.py", line 758, in execute
self.build_all()
File "/Customers/mertmehmetaraz/synapp/Test1/venv/lib/python3.9/site-packages/kivy_ios/toolchain.py", line 78, in _cache_execution
f(self, *args, **kwargs)
File "/Customers/mertmehmetaraz/synapp/Test1/venv/lib/python3.9/site-packages/kivy_ios/toolchain.py", line 858, in build_all
self.construct(plat)
File "/Customers/mertmehmetaraz/synapp/Test1/venv/lib/python3.9/site-packages/kivy_ios/toolchain.py", line 78, in _cache_execution
f(self, *args, **kwargs)
File "/Customers/mertmehmetaraz/synapp/Test1/venv/lib/python3.9/site-packages/kivy_ios/toolchain.py", line 844, in construct
self.build_platform(plat)
File "/Customers/mertmehmetaraz/synapp/Test1/venv/lib/python3.9/site-packages/kivy_ios/recipes/libffi/__init__.py", line 29, in build_platform
shprint(python3, "generate-darwin-source-and-headers.py", "--only-ios")
File "/Customers/mertmehmetaraz/synapp/Test1/venv/lib/python3.9/site-packages/kivy_ios/toolchain.py", line 60, in shprint
for line in cmd:
File "/Customers/mertmehmetaraz/synapp/Test1/venv/lib/python3.9/site-packages/sh.py", line 877, in __next__
self.wait()
File "/Customers/mertmehmetaraz/synapp/Test1/venv/lib/python3.9/site-packages/sh.py", line 794, in wait
self.handle_command_exit_code(exit_code)
File "/Customers/mertmehmetaraz/synapp/Test1/venv/lib/python3.9/site-packages/sh.py", line 821, in handle_command_exit_code
increase exc
sh.ErrorReturnCode_1:
RAN: /Customers/mertmehmetaraz/synapp/Test1/venv/bin/python3 generate-darwin-source-and-headers.py --only-ios
STDOUT:
Skipping i386
checking construct system kind... aarch64-apple-darwin23.6.0
checking host system kind... x86_64-apple-darwin13
checking goal system kind... x86_64-apple-darwin13
checking for gsed... sed
checking for a BSD-compatible set up... /usr/bin/set up -c
checking whether or not construct atmosphere is sane... sure
checking for x86_64-apple-darwin13-strip... no
checking for strip... strip
checking for a race-free mkdir -p... ../install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether or not make units $(MAKE)... sure
checking whether or not make helps nested variables... sure
checking for x86_64-apple-darwin13-gcc... xcrun -sdk iphonesimulator clang -target x86_64-apple-ios-simulator
chec... (21159 extra, please see e.stdout)
STDERR:
config.log
:
This file incorporates any messages produced by compilers whereas operating configure, to help debugging if configure makes a mistake.
It was created by libffi configure 3.4.4, which was generated by GNU Autoconf 2.71. Invocation command line was
$ ../configure -host arm-apple-darwin11
## --------- ##
## Platform. ##
## --------- ##
hostname = Merts-MacBook-Air.native uname -m = arm64 uname -r = 23.6.0 uname -s = Darwin uname -v = Darwin Kernel Model 23.6.0: Fri Jul 5 17:56:39 PDT 2024; root:xnu-10063.141.1~2/RELEASE_ARM64_T8122
/usr/bin/uname -p = arm /bin/uname -X = unknown
/bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = Mach kernel model: Darwin Kernel Model 23.6.0: Fri Jul 5 17:56:39 PDT 2024; root:xnu-10063.141.1~2/RELEASE_ARM64_T8122 Kernel configured for as much as 8 processors. 8 processors are bodily obtainable. 8 processors are logically obtainable. Processor kind: arm64e (ARM64E) Processors lively: 0 1 2 3 4 5 6 7 Major reminiscence obtainable: 8.00 gigabytes Default processor set: 597 duties, 2248 threads, 8 processors Load common: 3.50, Mach issue: 4.58 /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown
PATH: /usr/gnu/bin/ PATH: /usr/native/bin/ PATH: /bin/ PATH: /usr/bin/ PATH: ./
## ----------- ##
## Core checks. ##
## ----------- ##
configure:3073: searching for aux recordsdata: ltmain.sh compile lacking install-sh config.guess config.sub configure:3086: attempting ../ configure:3115: ../ltmain.sh discovered configure:3115: ../compile discovered configure:3115: ../lacking discovered configure:3097: ../install-sh discovered configure:3115: ../config.guess discovered configure:3115: ../config.sub discovered configure:3236: checking construct system kind configure:3251: end result: aarch64-apple-darwin23.6.0 configure:3271: checking host system kind configure:3285: end result: arm-apple-darwin11 configure:3305: checking goal system kind configure:3319: end result: arm-apple-darwin11 configure:3417: checking for gsed configure:3453: end result: sed configure:3482: checking for a BSD-compatible set up configure:3555: end result: /usr/bin/set up -c configure:3566: checking whether or not construct atmosphere is sane configure:3621: end result: sure configure:3673: checking for arm-apple-darwin11-strip configure:3708: end result: no configure:3718: checking for strip configure:3739: discovered /usr/bin/strip configure:3750: end result: strip configure:3776: checking for a race-free mkdir -p configure:3820: end result: ../install-sh -c -d configure:3827: checking for gawk configure:3862: end result: no configure:3827: checking for mawk configure:3862: end result: no configure:3827: checking for nawk configure:3862: end result: no configure:3827: checking for awk configure:3848: discovered /usr/bin/awk configure:3859: end result: awk configure:3870: checking whether or not make units $(MAKE) configure:3893: end result: sure configure:3923: checking whether or not make helps nested variables configure:3941: end result: sure configure:4105: checking for arm-apple-darwin11-gcc configure:4137: end result: xcrun -sdk iphoneos clang -target armv7-apple-ios configure:4535: checking for C compiler model configure:4544: xcrun -sdk iphoneos clang -target armv7-apple-ios --version >&5 Apple clang model 16.0.0 (clang-1600.0.26.4) Goal: armv7-apple-ios Thread mannequin: posix InstalledDir: /Purposes/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin configure:4555: $? = 0 configure:4544: xcrun -sdk iphoneos clang
-target armv7-apple-ios -v >&5 Apple clang model 16.0.0 (clang-1600.0.26.4) Goal: armv7-apple-ios Thread mannequin: posix InstalledDir: /Purposes/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin configure:4555: $? = 0 configure:4544: xcrun -sdk iphoneos clang
-target armv7-apple-ios -V >&5 clang: error: argument to '-V' is lacking (anticipated 1 worth) clang: error: no enter recordsdata configure:4555: $? = 1 configure:4544: xcrun -sdk iphoneos clang
-target armv7-apple-ios -qversion >&5 clang: error: unknown argument '-qversion'; did you imply '--version'? clang: error: no enter recordsdata configure:4555: $? = 1 configure:4544: xcrun -sdk iphoneos clang
-target armv7-apple-ios -version >&5 clang: error: unknown argument '-version'; did you imply '--version'? clang: error: no enter recordsdata configure:4555: $? = 1 configure:4575: checking whether or not the C compiler works configure:4597: xcrun -sdk iphoneos clang -target armv7-apple-ios -miphoneos-version-min=9.0 -fembed-bitcode conftest.c >&5 ld: warning: -bitcode_bundle is not supported and will probably be ignored ld: -mllvm and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) can't be used collectively clang: error: linker command failed with exit code 1 (use -v to see invocation) configure:4601: $? = 1 configure:4641: end result: no configure: failed program was: | /* confdefs.h */ | #outline PACKAGE_NAME "libffi" |
#outline PACKAGE_TARNAME "libffi" | #outline PACKAGE_VERSION "3.4.4" | #outline PACKAGE_STRING "libffi 3.4.4" | #outline PACKAGE_BUGREPORT "http://github.com/libffi/libffi/points" | #outline PACKAGE_URL "" |
#outline PACKAGE "libffi" | #outline VERSION "3.4.4" | /* finish confdefs.h. */ | | int | fundamental (void) | return 0; configure:4646: error: in `/Customers/mertmehmetaraz/synapp/Test1/construct/libffi/iphoneos-arm64/libffi-3.4.4/build_iphoneos-armv7': configure:4648: error: C compiler can not create executables See `config.log' for extra particulars
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=aarch64-apple-darwin23.6.0 ac_cv_env_CCASFLAGS_set= ac_cv_env_CCASFLAGS_value= ac_cv_env_CCAS_set= ac_cv_env_CCAS_value= ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CXXCPP_set= ac_cv_env_CXXCPP_value= ac_cv_env_LT_SYS_LIBRARY_PATH_set= ac_cv_env_LT_SYS_LIBRARY_PATH_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set=set ac_cv_env_host_alias_value=arm-apple-darwin11 ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_host=arm-apple-darwin11 ac_cv_path_ax_enable_builddir_sed=sed ac_cv_path_install="/usr/bin/set up -c" ac_cv_prog_AWK=awk ac_cv_prog_CC='xcrun -sdk iphoneos clang -target armv7-apple-ios' ac_cv_prog_ac_ct_STRIP=strip ac_cv_prog_make_make_set=sure ac_cv_target=arm-apple-darwin11 am_cv_make_support_nested_variables=sure
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} '''/Customers/mertmehmetaraz/synapp/Test1/construct/libffi/iphoneos-arm64/libffi-3.4.4/lacking''' aclocal-1.16' ALLOCA='' AMDEPBACKSLASH='' AMDEP_FALSE='' AMDEP_TRUE='' AMTAR='$${TAR-tar}' AM_BACKSLASH='' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' AM_DEFAULT_VERBOSITY='1' AM_LTLDFLAGS='' AM_RUNTESTFLAGS='' AM_V='$(V)' AR='' AUTOCONF='${SHELL} '''/Customers/mertmehmetaraz/synapp/Test1/construct/libffi/iphoneos-arm64/libffi-3.4.4/lacking''' autoconf' AUTOHEADER='${SHELL} '''/Customers/mertmehmetaraz/synapp/Test1/construct/libffi/iphoneos-arm64/libffi-3.4.4/lacking''' autoheader' AUTOMAKE='${SHELL} '''/Customers/mertmehmetaraz/synapp/Test1/construct/libffi/iphoneos-arm64/libffi-3.4.4/lacking''' automake-1.16' AWK='awk' BUILD_DOCS_FALSE='' BUILD_DOCS_TRUE='' CC='xcrun -sdk iphoneos clang -target armv7-apple-ios' CCAS='' CCASDEPMODE='' CCASFLAGS='' CCDEPMODE='' CFLAGS='-miphoneos-version-min=9.0 -fembed-bitcode' CPPFLAGS='' CSCOPE='cscope' CTAGS='ctags' CXX='' CXXCPP='' CXXDEPMODE='' CXXFLAGS='' CYGPATH_W='echo' DEFS='' DEPDIR='' DLLTOOL='' DSYMUTIL='' DUMPBIN='' ECHO_C='c' ECHO_N='' ECHO_T='' EGREP='' ETAGS='etags' EXEEXT='' FFI_DEBUG_FALSE='' FFI_DEBUG_TRUE='' FFI_EXEC_TRAMPOLINE_TABLE='' FFI_EXEC_TRAMPOLINE_TABLE_FALSE='' FFI_EXEC_TRAMPOLINE_TABLE_TRUE='' FGREP='' FILECMD='' GREP='' HAVE_LONG_DOUBLE='' HAVE_LONG_DOUBLE_VARIANT='' INSTALL_DATA='${INSTALL} -m 644' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' INSTALL_STRIP_PROGRAM='$(install_sh) -c
-s' LD='xcrun -sdk iphoneos ld -target armv7-apple-ios' LDFLAGS='' LIBFFI_BUILD_VERSIONED_SHLIB_FALSE='' LIBFFI_BUILD_VERSIONED_SHLIB_GNU_FALSE='' LIBFFI_BUILD_VERSIONED_SHLIB_GNU_TRUE='' LIBFFI_BUILD_VERSIONED_SHLIB_SUN_FALSE='' LIBFFI_BUILD_VERSIONED_SHLIB_SUN_TRUE='' LIBFFI_BUILD_VERSIONED_SHLIB_TRUE='' LIBOBJS='' LIBS='' LIBTOOL='' LIPO='' LN_S='' LTLIBOBJS='' LT_SYS_LIBRARY_PATH='' MAINT='' MAINTAINER_MODE_FALSE='' MAINTAINER_MODE_TRUE='' MAKEINFO='${SHELL} '''/Customers/mertmehmetaraz/synapp/Test1/construct/libffi/iphoneos-arm64/libffi-3.4.4/lacking''' makeinfo' MANIFEST_TOOL='' MKDIR_P='../install-sh -c -d' NM='' NMEDIT='' OBJDUMP='' OBJEXT='' OPT_LDFLAGS='' OTOOL64='' OTOOL='' PACKAGE='libffi' PACKAGE_BUGREPORT='http://github.com/libffi/libffi/points' PACKAGE_NAME='libffi' PACKAGE_STRING='libffi 3.4.4' PACKAGE_TARNAME='libffi' PACKAGE_URL='' PACKAGE_VERSION='3.4.4' PATH_SEPARATOR=':' PRTDIAG='' RANLIB='' READELF='' SECTION_LDFLAGS='' SED='' SET_MAKE='' SHELL='/bin/sh' STRIP='strip' TARGET='' TARGETDIR='' TARGET_OBJ='' TESTSUBDIR_FALSE='' TESTSUBDIR_TRUE='' VERSION='3.4.4' ac_ct_AR='' ac_ct_CC='' ac_ct_CXX='' ac_ct_DUMPBIN='' am__EXEEXT_FALSE='' am__EXEEXT_TRUE='' am__fastdepCCAS_FALSE='' am__fastdepCCAS_TRUE='' am__fastdepCC_FALSE='' am__fastdepCC_TRUE='' am__fastdepCXX_FALSE='' am__fastdepCXX_TRUE='' am__include="" am__isrc="https://stackoverflow.com/questions/79172585/-I$(srcdir)" am__leading_dot="." am__nodep='' am__quote="" am__tar="$${TAR-tar} chof - "$$tardir"" am__untar="$${TAR-tar} xf -" ax_enable_builddir_sed='sed' bindir="${exec_prefix}/bin" construct='aarch64-apple-darwin23.6.0' build_alias="" build_cpu='aarch64' build_os="darwin23.6.0" build_vendor="apple" datadir="${datarootdir}" datarootdir="${prefix}/share" docdir="${datarootdir}/doc/${PACKAGE_TARNAME}" dvidir="${docdir}" exec_prefix='NONE' host="arm-apple-darwin11" host_alias="arm-apple-darwin11" host_cpu='arm' host_os="darwin11" host_vendor="apple" htmldir="${docdir}" includedir="${prefix}/embrace" infodir="${datarootdir}/information" install_sh="${SHELL} /Customers/mertmehmetaraz/synapp/Test1/construct/libffi/iphoneos-arm64/libffi-3.4.4/install-sh" libdir="${exec_prefix}/lib" libexecdir="${exec_prefix}/libexec" localedir="${datarootdir}/locale" localstatedir="${prefix}/var" mandir="${datarootdir}/man" mkdir_p='$(MKDIR_P)' oldincludedir="/usr/embrace" pdfdir="${docdir}" prefix='NONE' program_transform_name="s,x,x," psdir="${docdir}" runstatedir="${localstatedir}/run" sbindir="${exec_prefix}/sbin" sharedstatedir="${prefix}/com" sys_symbol_underscore="" sysconfdir="${prefix}/and so on" goal="arm-apple-darwin11" target_alias="arm-apple-darwin11" target_cpu='arm' target_os="darwin11" target_vendor="apple" tmake_file="" toolexecdir="" toolexeclibdir=""
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#outline PACKAGE_NAME "libffi"
#outline PACKAGE_TARNAME "libffi"
#outline PACKAGE_VERSION "3.4.4"
#outline PACKAGE_STRING "libffi 3.4.4"
#outline PACKAGE_BUGREPORT "http://github.com/libffi/libffi/points"
#outline PACKAGE_URL ""
#outline PACKAGE "libffi"
#outline VERSION "3.4.4"
configure: exit 77
After altering libffi model to three.4.5 end result was similar. Any assist or thought could be nice. Thanks.