DEV Community

loading...
Cover image for How to fix - Sourcetree diff tool (FileMerge) doesn't launch on Mac

How to fix - Sourcetree diff tool (FileMerge) doesn't launch on Mac

Ibrar Hussain
I am a full stack web developer, presently working on Laravel & Vue. Love exploring new technologies.
・1 min read

On Mac, Sourcetree, by default is configured to use FileMerge that comes with Xcode for both Visual Diff Tool and Merge Tool.

In most cases when you update Xcode, it can lead to the potential issue of Sourcetree not launching FileMerge when resolving merging conflicts.

To resolve this issue, follow these steps:

  • Open Xcode

Alt Text

  • Go to preferences

Alt Text

  • Go to the Locations tab, the Command Line Tools option will be empty

Alt Text

  • Select Xcode from the dropdown list, it might prompt for the password

Alt Text

  • Enter the password and click OK button, the final result should look like this

Alt Text

  • Close Xcode and restart your merge, this time FileMerge tool will open correctly.

Discussion (0)