我试图让mkbundle工具在Mac OS X 10.7上运行。我安装了XCode 5,一些不同的Mono版本,从v2到v4。每当我尝试编译我的代码时,我都会得到一个
sh: as: command not found
当我尝试找到此命令时,它也不在我的系统上。谷歌搜索后,这是非常困难的" as"被过滤掉过于通用,我根本无法找到解决方案。我能找到的最好的资源表明它是XCode的原生编译器,但我安装了......
有人可以帮忙吗?
答案 0 :(得分:1)
您正在寻找Xcode汇编程序:
<强>&GT;男人
NAME
as - Mac OS X Mach-O GNU-based assemblers
SYNOPSIS
as [ option ... ] [ file ... ]
DESCRIPTION
The as command translates assembly code in the named files to object code.
If no files are specified, as reads from stdin. All undefined symbols in
the assembly are treated as global. The output of the assembly is left in
the file a.out by default.
The program /usr/bin/as is actually a driver that executes assemblers for
specific target architectures. If no target architecture is specified, it
defaults to the architecture of the host it is running on.
您是否安装了Xcode 和的cmd线工具?
> which as
/usr/bin/as
> file `which as`
/usr/bin/as: Mach-O 64-bit executable x86_64
位于Xcode.app:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../libexec/as/x86_64/as
Xcode cmd-line工具:
假设您已经安装了免费的&#39;通过App商店的Xcode包,可以通过&#34; xcode-select&#34;安装cmd行工具。放入术语窗口并:
xcode-select --help
Usage: xcode-select [options]
Print or change the path to the active developer directory. This directory
controls which tools are used for the Xcode command line tools (for example,
xcodebuild) as well as the BSD development commands (such as cc and make).
Options:
-h, --help print this help message and exit
-p, --print-path print the path of the active developer directory
-s <path>, --switch <path> set the path for the active developer directory
--install open a dialog for installation of the command line developer tools
-v, --version print the xcode-select version
-r, --reset reset to the default command line tools path
xcode-select --install
安装完成后,您将通过App Store获得更新