Git引用了旧版本的Xcode

时间:2013-11-04 02:17:25

标签: xcode git

不久前,在iOS 7 / Xcode 5测试版中,我安装了Xcode 5预览,与最新版本的Xcode 4.x并行安装。该应用程序名为Xcode 2。我已删除Xcode 2

我的问题是,现在当我尝试使用git mergetool -t opendiff时,它会出现此错误。

xcrun: Error: could not stat active Xcode path '/Applications/Xcode 2.app/Contents/Developer'. (No such file or directory)

如何更改mergetool尝试使用opendiff时所看到的Xcode版本?

1 个答案:

答案 0 :(得分:1)

我最终使用sudo xcode-select -switch /Applications/Xcode.app根据@darren的建议选择正确使用的Xcode版本。

相关问题