“./toolchain build kivy”尽管遵循了教程,但在 Mac OX X 10.8 上出现错误

"./toolchain build kivy" gives an error on Mac OX X 10.8 despite following the tutorial

我正在尝试为 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.

kivy 的 iOS prerequisites 声明它假设您有 Mac OS X 10.9 和 Xcode 5.1 或更好才能继续。
我怀疑 os 的 Python 版本不会正确地 运行 cython。 尝试 运行ning cythontools/cythonize 检查 cython 是否启动并 运行ning.
最后,我认为 kivy user's group 最能诊断os这个问题。