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

后端 未结 7 2315
灰色年华
灰色年华 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:14

    This blog post solved my issue for this:

    http://blog.jasonsemko.com/post/51668282398/easy-fix-for-cfurlcopyresourcepropertyforkey-failed

    The long and short of it is gitk isn't parsing the version string of git that comes with Xcode correctly, and is puking on the extra details.

    So to fix, you can install a git with a clean version number.

    brew install git

    You may need to make sure brew's version of git gets called by changing the order directories gets searched in your PATH (e.g., I had to load /usr/bin/local before /usr/bin). Alternatively, you can alias git to the absolute path installed by brew.

提交回复
热议问题