41

Where can I find filemerge after Xcode is upgraded to 4.3?

ohho
  • 50,879
  • 75
  • 256
  • 383

2 Answers2

49

In Xcode, choose this menu item: Xcode -> Open Developer Tool -> FileMerge. The app itself is here:

/Applications/Xcode.app/Contents/Applications/FileMerge.app

On the command line, use opendiff. You must have the command line tools installed -- go to Xcode, Preferences, Downloads tab, and install Command Line Tools if you haven't already.

Besi
  • 22,579
  • 24
  • 131
  • 223
Kurt Revis
  • 27,695
  • 5
  • 68
  • 74
  • Doesn't work for me: I get `Error: Can't run /Developer/usr/bin/opendiff (no such file).` Xcode 4.3 removed this folder altogether, and now `/usr/bin/opendiff` exists but gives me this error – Jean-Philippe Pellet Mar 05 '12 at 08:44
  • You can also launch it from directly within xcode, on the top bar. Click "Xcode" >> "open developer tools" – Mick MacCallum Mar 05 '12 at 09:35
  • 30
    If the command-line doesn't work, and you have no /Developer directory anymore, you probably need to: `sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer` – Kurt Revis Mar 09 '12 at 07:03
32

Run this in your terminal:

sudo /usr/bin/xcode-select -switch /Applications/Xcode.app/Contents/Developer
winsmith
  • 20,791
  • 9
  • 39
  • 49
  • 3
    This didn't work for me, but `sudo /usr/bin/xcode-select -switch /Applications/Xcode.app` did. – S M Mar 20 '12 at 18:56
  • Weird, it worked for me. I'll leave it unedited for now, and people will just try both methods and use the one that works for them. – winsmith Mar 22 '12 at 09:17