0%

oclint: error: cannot find dynamic library for report type: text

XCode 调试自定义规则时提示

1
2
oclint: error: cannot find dynamic library for report type: text
Program ended with exit code: 2

添加符号断点后打印 reporterPath。对于目录下确实没有文件

1
2
(lldb) po oclint::option::reporterPath()
"/Users/yulintao/Code/oclint/oclint-xcodederiver/bin/Debug/../lib/oclint/reporters"

解决方式:手动拷贝 build 目录下的 oclint-release/lib 目录到上述目录中