【发布时间】: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-config和cython时一切正常吗?我不能在 10.10 上尝试这个,因为它已经带有pip,这与自制软件的pip有点不同。