Buildozer 无法在 macOS 上构建,并且错误在日志中不可见

Buildozer fails to build on macOS and the error is not visible in logs

提问人:Ilya Loshkarev 提问时间:10/25/2023 最后编辑:Rabbid76Ilya Loshkarev 更新时间:10/26/2023 访问量:30

问:

我试图将pygame构建到ios应用程序中。 Buildozer 在步骤上失败。 似乎我有一个错误,但我找不到要找的地方。 日志文件只是说:toolchain build

Traceback (most recent call last):
  File "toolchain.py", line 3, in <module>
    main()
  File "/Users/loshkarev/PycharmProjects/pyc-man/.buildozer/ios/platform/kivy-ios/kivy_ios/toolchain.py", line 1672, in main
    ToolchainCL()
  File "/Users/loshkarev/PycharmProjects/pyc-man/.buildozer/ios/platform/kivy-ios/kivy_ios/toolchain.py", line 1409, in __init__
    getattr(self, args.command)()
  File "/Users/loshkarev/PycharmProjects/pyc-man/.buildozer/ios/platform/kivy-ios/kivy_ios/toolchain.py", line 1485, in build
    build_recipes(args.recipe, ctx)
  File "/Users/loshkarev/PycharmProjects/pyc-man/.buildozer/ios/platform/kivy-ios/kivy_ios/toolchain.py", line 1233, in build_recipes
    recipe.execute()
  File "/Users/loshkarev/PycharmProjects/pyc-man/.buildozer/ios/platform/kivy-ios/kivy_ios/toolchain.py", line 760, in execute
    self.build_all()
  File "/Users/loshkarev/PycharmProjects/pyc-man/.buildozer/ios/platform/kivy-ios/kivy_ios/toolchain.py", line 78, in _cache_execution
    f(self, *args, **kwargs)
  File "/Users/loshkarev/PycharmProjects/pyc-man/.buildozer/ios/platform/kivy-ios/kivy_ios/toolchain.py", line 860, in build_all
    self.build(plat)
  File "/Users/loshkarev/PycharmProjects/pyc-man/.buildozer/ios/platform/kivy-ios/kivy_ios/toolchain.py", line 78, in _cache_execution
    f(self, *args, **kwargs)
  File "/Users/loshkarev/PycharmProjects/pyc-man/.buildozer/ios/platform/kivy-ios/kivy_ios/toolchain.py", line 846, in build
    self.build_platform(plat)
  File "/Users/loshkarev/PycharmProjects/pyc-man/.buildozer/ios/platform/kivy-ios/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/loshkarev/PycharmProjects/pyc-man/.buildozer/ios/platform/kivy-ios/kivy_ios/toolchain.py", line 60, in shprint
    for line in cmd:
  File "/Library/Python/3.8/site-packages/sh.py", line 882, in __next__
    self.wait()
  File "/Library/Python/3.8/site-packages/sh.py", line 799, in wait
    self.handle_command_exit_code(exit_code)
  File "/Library/Python/3.8/site-packages/sh.py", line 826, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_2: 

  RAN: /usr/bin/make -j4 'CFLAGS=-O3 -miphonesimulator-version-min=9.0 -I/Users/loshkarev/PycharmProjects/pyc-man/.buildozer/ios/platform/kivy-ios/dist/include/iphonesimulator-x86_64/ffi -I/Users/loshkarev/PycharmProjects/pyc-man/.buildozer/ios/platform/kivy-ios/dist/include/common/libpng -I/Users/loshkarev/PycharmProjects/pyc-man/.buildozer/ios/platform/kivy-ios/dist/include/iphonesimulator-x86_64/openssl -I/Users/loshkarev/PycharmProjects/pyc-man/.buildozer/ios/platform/kivy-ios/dist/include/common/sdl2 -I/Users/loshkarev/PycharmProjects/pyc-man/.buildozer/ios/platform/kivy-ios/dist/include/common/sdl2_image -I/Users/loshkarev/PycharmProjects/pyc-man/.buildozer/ios/platform/kivy-ios/dist/include/common/sdl2_mixer -I/Users/loshkarev/PycharmProjects/pyc-man/.buildozer/ios/platform/kivy-ios/dist/include/common/sdl2_ttf -I/Users/loshkarev/PycharmProjects/pyc-man/.buildozer/ios/platform/kivy-ios/dist/include/iphonesimulator-x86_64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.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/9v/rqxtfcs13jj9dqxmp9h54mdh0000gn/T/tmpjuk3beo9 -c -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -O3 -miphonesimulator-version-min=9.0 -I/Users/loshkarev/PycharmProjects/pyc-man/.buildozer/ios/platform/kivy-ios/dist/include/iph... (743824 more, please see e.stdout)

  STDERR:

我尝试直接从 kivy-ios 构建它,没有 buildozer,它似乎有同样的问题。也许有人知道如何从线程中启动的 make (gnu-make) 获取完整的构建信息。我至少知道下一步该去哪里挖。

完整的 buildozer 日志在这里

蟒蛇 macOS kivy gnu-make buildozer

评论


答: 暂无答案