Coverity에서 iOS 응용 프로그램을 분석하려면 xcodebuild
과 함께 cov-build
을 사용하려고합니다.Coverity에서 xcodebuild를 사용하는 방법?
내가 실행 명령은 다음과 같습니다 나는 다음과 같은 명령을 사용하여 간단한하여 HelloWorld 프로그램을 컴파일 할 때
** BUILD SUCCEEDED **
[WARNING] No files were emitted. This may be due to a problem with your configuration
or because no files were actually compiled by your build command.
Please make sure you have configured the compilers actually used in the compilation.
For more details, please look at:
/Users/bartk/Desktop/objctest/intermediate/build-log.txt
NL1MCL-506614:objctest bartk$ cov-analyze --dir intermediate
Coverity Static Analysis version 8.7.0 on Darwin 16.4.0 x86_64
같은 일이 발생 :
cov-build --no-sip-check --dir intermediate xcodebuild -scheme {scheme}
빌드가 성공적으로 아직 아무 파일을 방출하지 , cov-build --no-sip-check --dir itermediate clang -framework Foundation program.m
, '파일이 배출되지 않습니다'.
objctest.build
폴더를 보면 모든 개체 파일이 있습니다. 물론
, 내가 후 cov-analyze
를 실행하면 다음과 같은 오류 제시 :
Using 8 workers as limited by CPU(s)
Looking for translation units
Error: intermediate directory contains no translation units.
어떻게 내가 Xcode 프로젝트와 커버 리티 cov-build
작업을 할 수 있습니까?
저는'cov-configure --clang'을 사용했습니다. 결과는 제가 게시했습니다. 나는 또한 당신의'cov-configure --compiler gcc --comptype clangcc --template'을 시도했지만, 나에게도 같은 오류가 발생한다. –
바이너리의 이름이'clang' 인 것을 편집하여 보았습니다. 그래서'cov-configure --clang'이 효과가있었습니다. 빌드 로그에서 어떤 문제가보고되고 그 문제가 있는지 살펴 보았습니까? – Caleb