XCode 4.5中最新的Clang位置 [英] Latest Clang location in XCode 4.5

查看:121
本文介绍了XCode 4.5中最新的Clang位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将XCode更新为4.5(使用iOS 6)并安装了最新的命令行工具。
之前我总是有最新的Clang版本

I've updated XCode to 4.5 (with iOS 6) and installed latest command line tools. Before that i always had the latest Clang version in

/Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin

(clang和clang ++二进制文件),但现在,最后更新,他们走了,我只有gcc和llvm的东西。我在Mac上检查了clangbin,并在

(clang and clang++ binaries), but now, with the last update, they are gone and i only have gcc and llvm stuff. I've checked 'clang' bins all over my Mac and found one in

/Applications/XCode.app/Contents/Developer/Toolchains/XCodeDefault.xctoolchain/usr/bin

但是为什么呢?首先,为什么我没有clang在以前的文件夹,它总是,其次,它是有效的方式使用作为'默认位置clang'这个xctoolchain文件夹(例如,对于cmake在项目存储库)

But why so? First, why i have no clang in previous folder, where it always was, and second, it is the valid way to use as 'default location for clang' this xctoolchain folder (e.g., for cmake in project repository)

EDIT :对于Xcode 5及更高版本,clang再次出现在.xctoolchain文件夹中

EDIT: for Xcode 5 and more, clang is again present in .xctoolchain folder

推荐答案

如果你安装了Xcode的命令行工具,你会cl在一个漂亮,直观的位置,如 / usr / bin

If you installed the "command line tools for Xcode" you would have clang in a nice, intuitive location like "/usr/bin".

要访问它们,您可以通过Xcode的偏好设置进入:

To get at them, you can go in via Xcode's preferences like this:

或者您可以点击其他开发人员工具链接,位于 http://developer.apple.com/xcode ,其中有一个磁盘图像和安装程序。

or you can click the "Looking for additional developer tools" link at http://developer.apple.com/xcode, where there's a disk image and an installer you can download.

这两个选项安装的组件完全相同。

Both of these options install the exact same components.

这篇关于XCode 4.5中最新的Clang位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆