参考Chisel官方:https://github.com/facebook/chiselgit
须要安装homebrew环境的支持github
brew update brew install chisel
(其实第一个命令brew update能够不用执行,直接install就能够,我是在update命令后无任何反应的状况下,直接install的)shell
执行完以后,会出现下面的结果:xcode
==> Downloading https://github.com/facebook/chisel/archive/1.1.0.tar.gz ######################################################################## 100.0% ==> Caveats Add the following line to ~/.lldbinit to load chisel when Xcode launches: command script import /usr/local/opt/chisel/libexec/fblldb.py ==> Summary 🍺 /usr/local/Cellar/chisel/1.1.0: 18 files, 112K, built in 7 seconds
能够看到,须要在~/ .lldbinit 文件中添加一行命令。ui
若是本地没有该文件,须要先建立该文件:spa
touch ~/.lldbinit
而后,将命令command script import /usr/local/opt/chisel/libexec/fblldb.py添加到~/ .lldbinit中。code
最后,重启xcode就可使用了,具体命令可使用help命令查看。homebrew