我理解,这是一个Xcode警告/错误,但是,当我尝试运行情况gitk --all
命令行。
YuFei-Zhus-MacBook-Pro:test phil88530$ gitk --all
2012-08-02 21:14:49.246 Wish[33464:707] CFURLCopyResourcePropertyForKey failed because it was passed this URL which has no scheme:
2012-08-02 21:14:49.252 Wish[33464:707] CFURLCopyResourcePropertyForKey failed because it was passed this URL which has no scheme:
2012-08-02 21:14:49.293 Wish[33464:707] CFURLCopyResourcePropertyForKey failed because it was passed this URL which has no scheme:
2012-08-02 21:14:49.295 Wish[33464:707] CFURLCopyResourcePropertyForKey failed because it was passed this URL which has no scheme:
2012-08-02 21:14:49.474 Wish[33464:707] CFURLCopyResourcePropertyForKey failed because it was passed this URL which has no scheme:
2012-08-02 21:14:49.476 Wish[33464:707] CFURLCopyResourcePropertyForKey failed because it was passed this URL which has no scheme:
2012-08-02 21:14:50.731 Wish[33464:707] CFURLCopyResourcePropertyForKey failed because it was passed this URL which has no scheme:
2012-08-02 21:14:50.734 Wish[33464:707] CFURLCopyResourcePropertyForKey failed because it was passed this URL which has no scheme:
YuFei-Zhus-MacBook-Pro:test phil88530$
我刚刚更换了新的磁盘,并全新安装OSX的和更新,以山狮,安装X11和Xcode的。 任何建议,为什么出现这种情况?
$ alias gitk='gitk 2>/dev/null'
我在这里有同样的问题。 这是快速提示,直到有人回答了这个解决方案。
如果你是MacPorts的用户升级的Tcl / Tk到8.6.0:
$ sudo port install tcl tk
与TCL-TK的新版本上运行gitk似乎解决了这个问题(与Mac OS X 10.8.4测试)。 如果你已经安装了自制,下面应该工作:
- 在命令行中运行:
brew install tcl-tk
- 然后将以下添加到您的.bashrc或者.bash_profile文件:
alias gitk='"$(brew --prefix tcl-tk)/bin/wish" "$(which gitk)"'
重新启动终端后,你应该能够没有看到任何“CFURLCopyResourcePropertyForKey”错误的正常运行gitk。
我刚才得到这个错误,并找到解决的办法来解决它。
我试图调用该函数getResourceValue:forKey:错误:在我的项目,我的操作系统版本为10.7.5。
我用+ URLWithString初始化一个新的NSURL对象:之前出现问题后,我与+ fileURLWithPath替换它:,它现在是好的。
具有不同功能的这两个对象之间的差异值是/卷/数据/文件://本地主机/卷/数据/一个/
苹果已经statemented低于约NSURL类,
处理对象创建失败的NSURL类无法创建一个新的NSURL对象,如果传递的路径是没有很好地形成; 必须符合RFC是不会得逞的案件2396实例的路径是包含空格字符和高比特字符的字符串。 如果创建一个NSURL对象失败,创建方法返回nil,你必须准备好处理。 如果您正在创建使用文件系统路径NSURL对象,你应该使用fileURLWithPath:或initFileURLWithPath :,它处理URL路径和文件系统路径之间的细微差别。 如果你想宽容缺陷的路径字符串,你需要使用的核心基础架构提供的功能来清理字符串。
错误在使用getResourceValue:在NSURL forKey方法
在山狮10.8.2,我解决了这个问题,安装/升级Tcl和Tk - 作为TAIR提及。
BREW安装TCL
BREW安装TK
gitk的UI很可能会改变,但你可以调整,在〜/ .gitk。
本博客文章解决了我的问题,为此:
http://blog.jasonsemko.com/post/51668282398/easy-fix-for-cfurlcopyresourcepropertyforkey-failed
长期和短期的它是gitk
不解析的Git版本字符串正确自带的Xcode,并令人作呕的额外的细节。
因此,要解决,你可以安装一个git用干净的版本号。
brew install git
您可能需要确保酿造的混帐的版本会被调用,通过改变顺序目录被搜查你的PATH
(例如,我不得不加载/usr/bin/local
之前/usr/bin
)。 或者,你可以别名混帐通过BREW安装的绝对路径。
别名GK = 'gitk --all 2>的/ dev / null的&'(我在MAC)
我有它在〜/ .bash_login文件文件,并解决它:d
你也可以把它放在.bashrc文件
文章来源: CFURLCopyResourcePropertyForKey failed because it was passed this URL which has no scheme: