CFURLCopyResourcePropertyForKey failed because it was passed this URL which has no scheme:
$ alias gitk='gitk 2>/dev/null'
I have same problem here. This is quick tip until someone answers this solution.
If you are MacPorts user upgrade tcl/tk to 8.6.0:
$ sudo port install tcl tk
Running gitk with a new version of tcl-tk seems to solve this problem (tested with Mac OS X 10.8.4). If you have Homebrew installed, the following should work:
- From the command line, run:
brew install tcl-tk
- Then add the following to your .bashrc or .bash_profile:
alias gitk='"$(brew --prefix tcl-tk)/bin/wish" "$(which gitk)"'
After restarting your terminal, you should be able to run gitk normally without seeing any "CFURLCopyResourcePropertyForKey" errors.