xcode - 找不到 FileMerge(opendiff 工具)但我安装了 xcode 4.6

标签 xcode macos git filemerge

当我尝试将 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 4.6.3 和 Command Line Tools for Xcode April 2013。我运行的是 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 位于 Xcode 中。

从命令行:

cd /Applications/Xcode.app/Contents/Applications/
open .

打开后进入该目录:

  1. 右键点击该应用
  2. 选择“制作别名”
  3. 将该别名移动到您的Applications 目录

一切就绪。

关于xcode - 找不到 FileMerge(opendiff 工具)但我安装了 xcode 4.6,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20793384/

相关文章:

git - 如何将新的(重写的)历史推送到远程存储库

merge 之前或之后的 Git 标签?

ios - 连接 html 嵌入字符串中的 swift 变量

ios - 如何在不使用 MFMessageComposeViewController 的情况下在我的 iOS 应用程序中发送短信?

macos - setPowerState 是否总是在启动后调用?

git - 如何使用 Sourcetree 创建跨越提交的补丁?

xcode - 如何在文件系统上将 Xcode 中的组映射到相同的组

ios - 在 Interface Builder 中设置 UITabBarItem 图像/图标

c - 在 Xcode 中构建旧的 unix C 项目时指针给出错误?

bash - 来源来自 Standard In(OSX 上的 Bash)