分析iOS项目时,oclint-json-compilation-database未运行(0.9)

时间:2014-08-06 12:05:59

标签: ios static-analysis oclint

我尝试运行oclint 0.7,它开始通过我的项目,但最终失败了:

Assertion failed: (Val && "isa<> used on a null pointer"), function doit, file /Users/lqi/Projects/LQRDG/oclint-0.7/build/llvm-install/include/llvm/Support/Casting.h, line 97.

Stack dump: 

0. <eof> parser at end of file

一些搜索显示这实际上是0.7的已知问题,解决方案是升级到开发版(0.9)。我拿了一个链接在oclint网站上的那个,并运行了我做的相同的一组命令,让0.7工作。我得到了:

$ oclint-json-compilation-database -e Pods/** -- -max-priority-1 20 -max-priority-2 50 -max-priority-3 100 -report-type pmd -o Build/oclint.xml

和oclint只是坐在那里,没有输出(已经超过一个小时了)。如果我ctrl + c我得到了回来(如果它有用,我不知道)

  File "~/Downloads/oclint-0.9.dev.648e9af/bin/oclint-json-compilation-database", line 85, in <module>

    exit_code = subprocess.call(oclint_invocation, shell=True)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 524, in call

    return Popen(*popenargs, **kwargs).wait()

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1357, in wait

    pid, sts = _eintr_retry_call(os.waitpid, self.pid, 0)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 478, in _eintr_retry_call



    return func(*args)

有没有人有这个问题或任何关于我可能做错的想法?​​

0 个答案:

没有答案