当我尝试将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 $
我已经为Xcode安装了XCode 4.6.3和命令行工具2013年4月.我正在运行OSX 10.7.5
我尝试过以下两个链接的解决方案但没有成功:
与opendiff的git diff给出"无法启动FileMerge"错误
Xcode 4.3安装后,filemerge仍然可用吗?
当我去的时候,Xcode -> Open Developer Tool
我没有FileMerge
在选项列表中看到.这里有一个More Developer Tools
链接:https://developer.apple.com/downloads/index.action?name = for%20Xcode%20-
我如何让FileMerge工作?
FileMerge位于Xcode内.
从命令行:
cd /Applications/Xcode.app/Contents/Applications/ open .
打开后进入该目录:
右键单击该应用程序
选择"制作别名"
将该别名移动到您的Applications目录
你们都准备好了.
奇怪." XCode 4.5,FileMerge在哪里? "建议:
与Xcode 4.5捆绑在一起的FileMerge不能作为独立应用程序运行.我尝试从应用程序包中压缩它.我能够扩展它以在桌面上显示FileMerge应用程序.但是当我试图运行它时,我得到一个错误,说它无法打开.
Apple的开发者下载网站拥有Xcode的每个版本.您可以尝试删除当前版本的Xcode 4.5,从开发人员下载站点下载Xcode 4.5,然后查看FileMerge是否存在.如果没有,您可以下载Xcode 4.4并查看是否有FileMerge.
实际上,我下载了一个全新的XCode 4.5安装程序,并将我更新的4.4到4.5升级版本放入垃圾箱,我现在再次拥有所有开发人员工具,包括FileMerge.奇怪的...
另一个选项,来自同一个线程:
为什么不安装命令行工具?这将为您提供"opendiff"工具.然后,您创建一个像这样的小脚本,使其有用并实际进行合并.
#!/bin/sh # Get a hold of the last parameter. eval LAST=\${$#} # Now run opendiff with the previous version and the current version. opendiff ${*} -merge "$LAST"