Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用objective-c clang静态分析仪_Objective C_Objective C++_Xcodebuild_Clang Static Analyzer - Fatal编程技术网

使用objective-c clang静态分析仪

使用objective-c clang静态分析仪,objective-c,objective-c++,xcodebuild,clang-static-analyzer,Objective C,Objective C++,Xcodebuild,Clang Static Analyzer,我已经试着用了两天没有问题 我正在使用以下命令: checker-276/scabuild xcodebuild -workspace App.xcworkspace -scheme AppScheme -configuration Debug clean build scan-build: Using '/Users/abc/checker-276/bin/clang' for static analysis Build settings from command line: CLA

我已经试着用了两天没有问题

我正在使用以下命令:

checker-276/scabuild xcodebuild -workspace App.xcworkspace -scheme AppScheme -configuration Debug clean build

scan-build: Using '/Users/abc/checker-276/bin/clang' for static analysis
Build settings from command line:
    CLANG_ANALYZER_EXEC = /Users/abc/checker-276/bin/clang
    CLANG_ANALYZER_OTHER_FLAGS = 
    CLANG_ANALYZER_OUTPUT = plist-html
    CLANG_ANALYZER_OUTPUT_DIR = /var/folders/5p/48jf5v4516l7x9dhb0vj6jr0prj25r/T/scan-build-2015-03-06-113904-24636-1
    RUN_CLANG_STATIC_ANALYZER = YES
我尝试过使用参数、设置sdk、构建设置、编译器等,但最终结果是一样的:

mylib.h:68:10: fatal error: 'string' file not found
#include <string>
 fatal error: 'vector' file not found
#include <vector>
我使用了包含在.mm文件中的几个C++库。我认为这可能是个问题,但是XCode静态分析器可以正确地完成这项工作,所以我假设我也可以通过配置clang静态分析器来完成这项工作

xcodebuild进行了艰苦的编译,为什么scanbuild会失败呢

你知道我怎样才能消除上述问题吗

谢谢你的建议,谢谢你花时间在这上面