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