python - Kivy Ios ./toolchain.py 构建 kivy 不工作

标签 python ios python-3.x kivy toolchain

我正在关注 https://kivy.org/doc/stable/guide/packaging-ios.html 上的教程

开始./toolchain.py build kivy但它不起作用,这是输出

[DEBUG   ] error: command '/tmp/tmpZReB1k' failed with exit status 1
Traceback (most recent call last):
  File "./toolchain.py", line 1568, in <module>
    ToolchainCL()
  File "./toolchain.py", line 1281, in __init__
    getattr(self, args.command)()
  File "./toolchain.py", line 1322, in build
    build_recipes(args.recipe, ctx)
  File "./toolchain.py", line 1158, in build_recipes
    recipe.execute()
  File "/Users/abdulgilani/kivy-ios/toolchain.py", line 729, in execute
    self.build_all()
  File "/Users/abdulgilani/kivy-ios/toolchain.py", line 84, in _cache_execution
    f(self, *args, **kwargs)
  File "/Users/abdulgilani/kivy-ios/toolchain.py", line 837, in build_all
    self.build(arch)
  File "/Users/abdulgilani/kivy-ios/toolchain.py", line 84, in _cache_execution
    f(self, *args, **kwargs)
  File "/Users/abdulgilani/kivy-ios/toolchain.py", line 811, in build
    self.build_arch(arch)
  File "/Users/abdulgilani/kivy-ios/toolchain.py", line 1112, in build_arch
    _env=build_env)
  File "/Users/abdulgilani/kivy-ios/toolchain.py", line 67, in shprint
    for line in cmd:
  File "./tools/external/sh.py", line 565, in next
    self.wait()
  File "./tools/external/sh.py", line 500, in wait
    self.handle_command_exit_code(exit_code)
  File "./tools/external/sh.py", line 516, in handle_command_exit_code
    raise exc(self.ran, self.process.stdout, self.process.stderr)
sh.ErrorReturnCode_1: 

  RAN: '/Users/abdulgilani/kivy-ios/dist/hostpython3/bin/python setup.py build_ext -g'

  STDOUT:
running build_ext
building 'ios' extension
creating build
creating build/temp.macosx-10.14-x86_64-3.7
/tmp/tmpZReB1k -DNDEBUG -g -fwrapv -O3 -Wall -O3 -miphoneos-version-min=8.0 -I/Users/abdulgilani/kivy-ios/dist/include/x86_64/freetype -I/Users/abdulgilani/kivy-ios/dist/include/x86_64/ffi -I/Users/abdulgilani/kivy-ios/dist/include/x86_64/openssl -I/Users/abdulgilani/kivy-ios/dist/include/common/sdl2 -I/Users/abdulgilani/kivy-ios/dist/include/common/sdl2_image -I/Users/abdulgilani/kivy-ios/dist/include/common/sdl2_mixer -I/Users/abdulgilani/kivy-ios/dist/include/common/sdl2_ttf -I/Users/abdulgilani/kivy-ios/dist/include/x86_64 -g -I/Users/abdulgilani/kivy-ios/dist/hostpython3/include/python3.7m -c ios.c -o build/temp.macosx-10.14-x86_64-3.7... (18298 more, please see e.stdout)

  STDERR:

我使用 python3、macOS mojave 10.14、xcode 11.0

最佳答案

我找到了解决此问题的方法,那就是切换回 XCode 10.3

关于python - Kivy Ios ./toolchain.py 构建 kivy 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58509617/

相关文章:

python-3.x - 值错误 : Could not find a format to read the specified file in mode 'i'

python-3.x - 使用 Python 从 Autodesk Inventor 中提取参数

python - 如何在使用response.css提取时删除/n和逗号

python - Sphinx : Import error in not to document package. 有没有办法到 "skip"?

ios - Parse.com PFLoginView UITextfield 显示问题。不能删除边框?

ios - 无法将类型 'Class' 的值分配给类型 '[Class]'

ios - XCode9-beta:函数的隐式声明 'sqlite3_key'

python - 如何使用 pip 在 Python3 上安装 Flask?

python - 按条件条件对列表进行排序

python - 如何在 Python Pandas 中将数据框列中的字符串替换为另一个字符串?