解决 Xcode 4.3 和 MacPort 的冲突

Xcode 4.3 作为一个 app 出现在系统中,所以 MacPort 因为找不到 /Developer 就蒙了…… 其实解决方法很简单:

1. 打开 Xcode 的首选项,安装 Command Line Tools
2. 打开终端,输入以下命令:

1
2
sudo /usr/bin/xcode-select -switch /Applications/Xcode.app 
sudo ln -s `which clang` /Applications/Xcode.app/Contents/Developer/usr/bin/

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.