xcode 如何运行/安装 xcodebuild?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9849034/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to run / install xcodebuild?
提问by Pterie Daktyl
If I try to run xcodebuild from the command line, I receive the message:
如果我尝试从命令行运行 xcodebuild,我会收到以下消息:
error: can't exec '/Developer/usr/bin/xcodebuild' (No such file or directory)
错误:无法执行'/Developer/usr/bin/xcodebuild'(没有那个文件或目录)
But, xcrun appears to work.
但是, xcrun 似乎有效。
Does this mean xcodebuild is not installed? I installed the command line tools in Xcode 4.3.1 Is there something I need to do to get this to work?
这是否意味着未安装 xcodebuild?我在 Xcode 4.3.1 中安装了命令行工具 我需要做些什么才能让它工作吗?
回答by Kurt Revis
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer