darenluo

Results 4 comments of darenluo

你好,目前我在使用此项目时有以下疑问: 1、在xocde中直接编译ClangZombieCodePlugin插件可以编译成功,但是在直接编译XcodeZombieCodeDemo失败,是因为OTHER_CFLAGS配置的插件路径错误,配置路径是/opt/local/lib/clangplugin/libClangZombieCodePlugin.dylib,正确路径应该是/opt/llvm/clangplugin/libClangZombieCodePlugin.dylib,换成正确的路径之后,可以编译成功,但是在外层的Analyzer文件夹里面并没有生成.jsonpart中间文件。 2、如果成功生成了.jsonpart中间文件,是否只要运行XcodeZombieCodeAnalyzer编译出的可执行文件技能生成最终的json文件?

@kangwang1988 现在我编译demo工程已经可以生成.jsonpart文件,也可以用你的工具分析出重复/无用的方法。但是我在我们的工程上使用插件时,我配置了compiler为Clang LLVM Trunk,OTHER_CFLAGS为I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1 -mios-version-min=8.0 -Xclang -load -Xclang /opt/local/lib/clangplugin/libClangZombieCodePlugin.dylib -Xclang -add-plugin -Xclang ClangZombieCodePlugin -Xclang -plugin-arg-ClangZombieCodePlugin -Xclang $SRCROOT,编译报错“no such file or directory: 'I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1'”,我把前面的I去掉之后,还是报错“clang-3.9: error: cannot specify -o when generating multiple output...

@kangwang1988 其实我机器上是有/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1这个目录的,感觉是这个I没有被识别为include。我去掉这句话后还是报错,"error: unable to load plugin '/opt/local/lib/clangplugin/libClangZombieCodePlugin.dylib': 'dlopen(/opt/local/lib/clangplugin/libClangZombieCodePlugin.dylib, 9): image not found',这个目录确实没有dylib文件,不知道demo工程为什么没有报错,我把插件路径改成/opt/llvm/clangplugin/libClangZombieCodePlugin.dylib后,还是报错,“clang-3.9: error: invalid version number in '-miphoneos-version-min=10.1'”,你可以用xcode新建一个工程试一下

@kangwang1988 改了之后还是报同样的错误,XcodeZombieCodeDemo的deployTarget是10.0,但是并没有报错。