iOS Xcode (12.5.1) 安装chisel工具

1,099 阅读1分钟

一 丶 问题

chisel

github.com/facebook/ch…

它是lldb的扩展工具集合

按照官方操作下,打开Xcode,控制台输出

error: module importing failed: invalid pathname

环境

  • mac 11.2
  • xcode 12.5.1

安装方式

  • $brew install chisel

二丶 解决方式

① 通过 $brew list chisel 找到安装路径

image.png

②找到fbchisellldb.py 的路径

/opt/homebrew/Cellar/chisel/2.0.1/libexec/fbchisellldb.py

③添加到 ~/.lldbinit 文件里,没有自行创建

command script import /opt/homebrew/Cellar/chisel/2.0.1/libexec/fbchisellldb.py

④重启Xcode

image.png