xcode - CFURLCopyResourcePropertyForKey 失败,因为它传递了这个没有方案 : 的 URL

标签 xcode macos git command-line terminal

我知道这是一个 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 并更新到 mountain lion,安装了 x11 和 xcode。有什么建议为什么会这样吗?

最佳答案

$ alias gitk='gitk 2>/dev/null'

我这里也有同样的问题。在有人回答此解决方案之前,这是快速提示。

关于xcode - CFURLCopyResourcePropertyForKey 失败,因为它传递了这个没有方案 : 的 URL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11785126/

相关文章:

swift - 子类化自定义 UIViewController 时出现内存泄漏

xcode - UIAlertController 和堆叠式 UIAlert 按钮

macos - 如何创建要保存到新文档的文档范围书签?

git - 我怎样才能找到我的 git 分支将提交到哪个 SVN 分支?

git - 将先前的提交分解为多个提交

ios - Swift 中 XCode 中的计算器布局困难

xcode - Interface Builder XIB 错误 - 无法写入路径

c++ - 使用 g++-5 时,protobuf 不会在 osx 上编译

objective-c - 将用户发送到 App Store 以更新 OS X 版本

git - 在 Git 中一次 merge 2 个以上的分支/头?