xcode - git diff with opendiff gives "Couldn't launch FileMerge" error -
i have git configured use ~/bin/opendiff-git.sh external diff tool. script looks this:
opendiff $2 $5
when try , git diff command line, message:
2011-02-18 13:58:55.532 opendiff[27959:60f] exception raised trying run filemerge: launch path not accessible 2011-02-18 13:58:55.535 opendiff[27959:60f] couldn't launch filemerge external diff died, stopping @ source/some_file.m.
what's going on? has worked many months, stopped working recently.
so after deleted beta developer folder try , solve (couldn't fix work merge tool) stumbled upon in command line:
error: no developer directory found @ /developer beta. run /usr/bin/xcode-select update developer directory path.
turns out can set developer path need use:
usage: xcode-select -print-path or: xcode-select -switch <xcode_folder_path> or: xcode-select -version arguments: -print-path prints path of current xcode folder -switch <xcode_folder_path> sets path current xcode folder -version
looks installing beta had automatically set path beta. fix it, run this:
sudo /usr/bin/xcode-select -switch /developer
that fixed me.
update
ying's comment below important enough include in answer. xcode 4.3 on, location of folder has changed inside application package:
sudo /usr/bin/xcode-select -switch /applications/xcode.app/contents/developer/
Comments
Post a Comment