CFURLCopyResourcePropertyForKey failed because it was passed this URL which has no scheme:

后端 未结 7 2311
灰色年华
灰色年华 2021-01-30 11:10

I understand this is an xcode warning/error, however, it happens when I try to run gitk --all from the command line.

YuFei-Zhus-MacBook-Pro:test phi         


        
7条回答
  •  悲&欢浪女
    2021-01-30 11:24

    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:

    1. From the command line, run: brew install tcl-tk
    2. 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.

提交回复
热议问题