【发布时间】:2014-01-14 14:44:26
【问题描述】:
当我尝试将 FileMerge 作为 Opendiff 的 GUI 运行时,我收到一个错误:
$ git mergetool -t opendiff
Merging:
Gemfile
Gemfile.lock
...
Normal merge conflict for 'Gemfile':
{local}: modified file
{remote}: modified file
Hit return to start merge resolution tool (opendiff):
2013-12-26 20:00:20.248 opendiff[22367:e07] Couldn't find FileMerge
Gemfile seems unchanged.
Was the merge successful? [y/n] ^C
$
我已于 2013 年 4 月安装了 XCode 4.6.3 和 Xcode 命令行工具。我正在运行 OSX 10.7.5
我尝试了以下两个链接的解决方案,但没有成功:
git diff with opendiff gives "Couldn't launch FileMerge" error
Is filemerge still available after Xcode 4.3 installation?
当我转到Xcode -> Open Developer Tool 时,我在选项列表中看不到FileMerge。有一个More Developer Tools 链接将我带到这里:https://developer.apple.com/downloads/index.action?name=for%20Xcode%20-
如何让 FileMerge 正常工作?
【问题讨论】:
-
我认为 FileMerge 应该是默认安装的。你没有
/Applications/Xcode.app/Contents/Applications/FileMerge.app吗? -
ls /Applications/Xcode.app/Contents/不显示Applications文件夹 -
嗯,我有 Xcode 5。我认为这些工具可能在 4 中的不同目录中。尝试在整个 Xcode.app 包中搜索(使用
find)。