Cannot Find FileMerge (opendiff Tool) But I Have Xcode 4.6 Installed


Answer :

FileMerge is located at within Xcode.

From the command-line:

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

Go into that directory once it opens:

  1. Right-click on the app
  2. Choose "Make alias"
  3. Move that alias to your Applications directory

You're all set.


Strange. "XCode 4.5, where is FileMerge ?" suggests:

The FileMerge that is bundled with Xcode 4.5 doesn't work as a standalone application. I tried compressing it from the application bundle. I was able to expand it to show the FileMerge app on the desktop. But when I tried to run it I got an error saying it couldn't be opened.

Apple's developer downloads site has every version of Xcode. You could try trashing your current version of Xcode 4.5, downloading Xcode 4.5 from the developer downloads site, and see if FileMerge is there. If not, you can download Xcode 4.4 and see if that has FileMerge.

Indeed, I downloaded a fresh new install of XCode 4.5 and put my updated 4.4 to 4.5 upgraded version into the trash and I have now all the developer tools again, including FileMerge. Weird...


The other option, from that same thread:

Why not just install the Command Line Tools? That will give you the "opendiff" tool. Then, you create a little script like this one to make it useful and actually do a merge.

#!/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" 

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable