我试图从命令行获取警告、错误、语法编码约定和圈复杂度的列表。我发现奥林石可以用于我的目的。但后来我遇到了一个问题
我想做的事。
xcodebuild -project testing.xcodeproj -target "testing" -configuration "Debug" -destination "platform=iOS Simulator,name=iPad" -sdk "iphonesimulator7.0" -IDEBuildOperationMaxNumberOfConcurrentCompileTasks=8 clean
xcodebuild -project testing.xcodeproj -target "testing" -configuration "Debug" -destination "platform=iOS Simulator,name=iPad" -sdk "iphonesimulator7.0" -IDEBuildOperationMaxNumberOfConcurrentCompileTasks=8 build |tee xcodebuild.logoclint-xcodebuild xcodebuild.log
在此之前,一切都很顺利,甚至compile_commands.json的创建也是正确的。
但是当我运行oclint-json-compilation-database时,我会得到这个错误。
我从这里中读到,在上面的命令成功后,我必须使用oclint [-enable-clang-static-analyzer]
如果有人知道如何解决这个问题,或者对我的需求有更好的解决方案,请告诉我。
编辑:如果我使用clint [-enable-clang-static-analyzer -R /usr/lib/oclint/rules ],那么我就得到了错误oclint: error: cannot find dynamic library for report type: text
发布于 2014-09-11 10:28:22
发现了我的问题。发布解决方案,因为它可以帮助某人。
我的问题是,我克隆了存储库,并手动将脚本文件粘贴到usr/local/lib中,这在某种程度上是不对的!我所做的是删除这些,并做了一个啤酒安装。
这是命令
brew install https://raw.github.com/ryuichisaito6/homebrew/f12a21dd274899ef9ab14cd97e45f315dd982cf6/Library/Formula/oclint.rb 谢谢
https://stackoverflow.com/questions/25763974
复制相似问题