Mac OS Lion上消失的Developer Tools



转自:http://www.scicoder.org/2012/03/developer-tools-on-os-x-10-7-lion/
Developer Tools on OS X 10.7 (Lion)

Developer Tools on OS X 10.7 (Lion)

Apple has made some big changes to their developer tools lately. The new Xcode 4 is a huge change from Xcode 3. I’ll admit that I’ve moved from “I hate it!!” to “I don’t hate it anymore.” But that took some time.

The other big change is that Xcode is now available only from the Mac App Store, of course for free. In previous versions when you installed the Developer Tools package, you'd get gcc, make, and all the usual developer tools you’d expect as part of the installation. Now “Developer Tools” means “the Xcode app.” If you install it and go to the command line, you might be a little surprised to still see this:

?
1
2
3
4
5
6
% make
- bash : make : command not found
% gcc
- bash : gcc: command not found
% cc
- bash : cc: command not found

You need to perform one more step. Open Xcode, and then go to Preferences ➔ Downloads and select the “Components” tab. There you can click the install button next to “Command Line Tools”.

Command Line Tools in Xcode

That’s it!

For those of you who miss the contents of the old /Developer directory read on. Its contents are not gone, but they now live inside the Xcode application itself. In the Finder, if you control-click (or right-click) on the Xcode icon and select “Show Package Contents”. But there are other ways to get to what you need; you don’t really need to go there. For example, to access the very handy File Merge tool, you get to it from the Xcode menu:

Developer Tools Menu

It’s rather annoying that Apple has “hidden” FileMerge like that, but hey, now you know where it is. What, you’ve never used it before?? It’s perfect for comparing two text files visually. Give a try — it’s a lot nicer than diff on the command line.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值