macOS 更新到 Sierra 后 stree 命令不起作用

stree command not working after macOS update to Sierra

我的问题与:

已将 MacO 更新到 Sierra (10.12.6)

当我输入 stree 命令打开 sourcetree 时,出现以下错误

stree objc[11289]: Objective-C garbage collection is no longer supported.

问题与由于某种原因未更新的旧源代码树二进制文件有关。以下步骤帮助我解决了这个问题。

$ rm /usr/local/bin/stree
$ cp /Applications/SourceTree.app/Contents/Resources/stree /usr/local/bin/stree
$ stree # success