【问题标题】:"./toolchain build kivy" gives an error on Mac OX X 10.8 despite following the tutorial“./toolchain build kivy”在 Mac OS X 10.8 上出现错误,尽管遵循教程
【发布时间】:2015-08-25 03:19:45
【问题描述】:

我正在尝试为 iOS 构建 kivy。在tutorial in kivy's guide之后,我输入命令:

$./toolchain.py build kivy

但它会输出此错误消息:

Traceback (most recent call last):
File "./toolchain.py", line 173, in <module>
 class ArchSimulator(Arch):
File "./toolchain.py", line 178, in ArchSimulator
 sysroot = sh.xcrun("--sdk", "iphonesimulator", "--show-sdk-    path").strip()
File "./tools/external/sh.py", line 1021, in __call__
 return RunningCommand(cmd, call_args, stdin, stdout, stderr)
File "./tools/external/sh.py", line 486, in __init__
 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_64: 

RAN: '/usr/bin/xcrun --sdk iphonesimulator --show-sdk-path'

STDOUT:


STDERR:
 xcrun: error: unrecognized option: --show-sdk-path
Usage: xcrun [options] <utility> ... arguments ...

Find and execute the named command line utility from
the installed Xcode.

Options:
 -h, --help           show this help message and exit
 -v, --verbose        show verbose logging output
 --sdk <sdk name>     find the tool for the given SDK name
 --toolchain <name>   find the tool for the given toolchain
 -l, --log            show commands to be executed (with --run)
 -f, --find           only find and print the utility path
 -r, --run            find and execute the utility (this is the default behavior)
 -n, --no-cache       do not use the lookup cache
 -k, --kill-cache     remove any existing cache file (and perhaps recreate)

我使用的是 Mac 10.8(在 vmware 上)+ Xcode 4.6。

【问题讨论】:

  • 请链接到您使用的教程并将您的命令放在代码块或反引号中。
  • "./toolchain.py build kivy" :kivy.org/docs/guide/packaging-ios.html
  • 好的,我在你的问题中添加了这个;当您安装必备组件autoconf automake libtool pkg-configcython 时一切正常吗?我不能在 10.10 上尝试这个,因为它已经带有 pip,这与自制软件的 pip 有点不同。

标签: macos kivy


【解决方案1】:

kivy 的 iOS prerequisites 声明它假定您拥有 Mac OS X 10.9 和 Xcode 5.1 或更高版本才能继续。
我怀疑这个操作系统的 Python 版本无法正常运行 cython。 尝试运行 cythontools/cythonize 以检查 cython 是否已启动并正在运行。
最后,我认为kivy user's group 最能诊断此问题。

【讨论】:

猜你喜欢
  • 2022-12-23
  • 2013-01-02
  • 2013-05-03
  • 2012-12-01
  • 2014-02-09
  • 2013-07-19
  • 2013-03-03
  • 1970-01-01
  • 2013-10-28
相关资源
最近更新 更多