2013-02-05 2 views
0

xcodebuild를 사용하여 iOS 6.0 (Xcode 4.5) 프로젝트를 별도로 성공적으로 빌드 한 후 sourceanalyzer는 stdarg.h 및 유사 항목을 포함한 몇 가지 클래스에 대해 누락 된 .nst 파일을 먼저보고합니다. sourceanalyzer가 iPhone SDK의 헤더 검색 경로를 볼 수없는 것 같습니다. 그러나 Fortify는 매우 희귀한데, 나는 아직 어떤 대답도 발견하지 못했고, 특히 다양한 Xcode 버전 등과의 호환성에 관해서는 누구나?HP Fortify 및 Xcode 사용

$ sourceanalyzer -b Forty xcodebuild -configuration Debug -sdk iphoneos6.1 

출력 :

Build settings from command line: 
SDKROOT = iphoneos6.1 

=== BUILD NATIVE TARGET fortifyTest OF PROJECT fortifyTest WITH CONFIGURATION Debug === 
Check dependencies 

ProcessPCH  /var/folders/yp/2l8w2hpd08199zstwqnxnvs80000gp/C/com.apple.Xcode.502/SharedPrecompiledHeaders/fortifyTest-Prefix-gfjvmaafdrnknjehmxvutbaqdpny/fortifyTest-Prefix.pch.pth fortifyTest/fortifyTest-Prefix.pch normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler 
cd /Users/sychram/Repositories/fortifyTest 
setenv LANG en_US.US-ASCII 
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Applications/HP_Fortify/HP_Fortify_SCA_and_Apps_3.70/bin" 
/Users/sychram/.fortify/sca5.14/build/Forty/build717537620538182813/clang -x objective-c-header -arch armv7 -fmessage-length=0 -std=gnu99 -fobjc-arc -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -miphoneos-version-min=6.0 -iquote /Users/sychram/Repositories/fortifyTest/build/fortifyTest.build/Debug-iphoneos/fortifyTest.build/fortifyTest-generated-files.hmap -I/Users/sychram/Repositories/fortifyTest/build/fortifyTest.build/Debug-iphoneos/fortifyTest.build/fortifyTest-own-target-headers.hmap -I/Users/sychram/Repositories/fortifyTest/build/fortifyTest.build/Debug-iphoneos/fortifyTest.build/fortifyTest-all-target-headers.hmap -iquote /Users/sychram/Repositories/fortifyTest/build/fortifyTest.build/Debug-iphoneos/fortifyTest.build/fortifyTest-project-headers.hmap -I/Users/sychram/Repositories/fortifyTest/build/Debug-iphoneos/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/sychram/Repositories/fortifyTest/build/fortifyTest.build/Debug-iphoneos/fortifyTest.build/DerivedSources/armv7 -I/Users/sychram/Repositories/fortifyTest/build/fortifyTest.build/Debug-iphoneos/fortifyTest.build/DerivedSources -F/Users/sychram/Repositories/fortifyTest/build/Debug-iphoneos --serialize-diagnostics /var/folders/yp/2l8w2hpd08199zstwqnxnvs80000gp/C/com.apple.Xcode.502/SharedPrecompiledHeaders/fortifyTest-Prefix-gfjvmaafdrnknjehmxvutbaqdpny/fortifyTest-Prefix.pch.dia -c /Users/sychram/Repositories/fortifyTest/fortifyTest/fortifyTest-Prefix.pch -o /var/folders/yp/2l8w2hpd08199zstwqnxnvs80000gp/C/com.apple.Xcode.502/SharedPrecompiledHeaders/fortifyTest-Prefix-gfjvmaafdrnknjehmxvutbaqdpny/fortifyTest-Prefix.pch.pth -MMD -MT dependencies -MF /var/folders/yp/2l8w2hpd08199zstwqnxnvs80000gp/C/com.apple.Xcode.502/SharedPrecompiledHeaders/fortifyTest-Prefix-gfjvmaafdrnknjehmxvutbaqdpny/fortifyTest-Prefix.pch.d 
[error]: Translator execution failed. Please consult the Troubleshooting section of the User Manual. 
Translator returned status 1: 

In file included from /Users/sychram/Repositories/fortifyTest/fortifyTest/fortifyTest-Prefix.pch:12: 
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:9: 
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:8: 
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6: 
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11: 
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/include/sys/types.h:78: 
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/include/machine/types.h:35:10: fatal error: 'i386/types.h' file not found 
#include "i386/types.h" 
    ^
1 error generated. 
+0

이 소프트웨어의 작동 방식에 대한 자세한 정보를 제공해 주시겠습니까? 내 Mac에이 소프트웨어를 설치하거나 Fortify 웹 포털에 내 소스 코드를 업로드해야합니까? iOS 응용 프로그램 검사 용 Fortify 정적 코드 분석기를 찾고 있습니다. – harshit2811

+0

Fortify는 Java로 작성된 응용 프로그램으로 Linux/Mac/Windows에서 실행할 수 있습니다. 그것은 필수 빌드 시스템을 기반으로 (ant, maven, cmake, xcode 등) 정적 코드 분석기를 기반으로합니다. 또한 HP Fortify 360이라는 서비스가 SaaS로 제공되어 타사 (Fortify) 웹 포털에 코드를 업로드 할 수 있습니다. 요새화는 HP에 의해 판매되었으므로 미래는 분명하지 않습니다. Checkmarx (SaaS도 시도해 볼 수 있습니다. – igraczech

답변

0

AFAIK에만 엑스 코드 버전 4.1, 4.2, 4.2.1, 4.3은 최신 버전 3.7에서 강화 지원합니다.

+0

접두어 머리글, 프로젝트 (UIKit, 보안 ...)에 포함 된 시스템 프레임 워크는 실제로/ObjC/폴더에 복사되지 않습니다. – igraczech

+0

+1 to greencrizz, 4.3.3 실패, 4.3.0 실패. 애플과 HP 모두 큰 망치와 약간의 고함을 요구할 것이다. Fortify 3.7은 향후 출시해야하는 앱이 아닌 2 년 된 프로젝트를 분석하는 데 유용합니다. 여기서는 – igraczech

+0

과 동일하지만이를 푸시하는 기능 향상 요청이 있습니다. 그리고 예, 오래된 프로젝트를 스캔하는 것과 관련하여 귀하는 옳습니다. – greencrizz

0

현재 SCA 버전 4.02가 설치된 xcode 4.6이 지원됩니다. 하지만 xcode 5.x가 요새화를 지원할 때까지 기다리고 있으며 iOS7 기반의 앱을 검색 할 수 있습니다. App Store에 제출되는 2 월 2 일 이후의 앱은 Xcode 5의 최신 버전으로 제작되어야하며 iOS 7에 맞게 최적화되어야합니다.

+1

Xcode 5 및 iOS 7 프로젝트 (Obj-C 2.0 구문, 접두사 등)를 모두 지원하는 Fortify 정적 코드 분석기 6.00.0096이 이미 있습니다. – igraczech

+0

정보를 제공해 주셔서 감사 드리며이를 다시 확인하겠습니다. 맥. 나는 sourceanalyzer 명령을 내릴 때 경고가 있다고 생각했다. – greencrizz

+0

이 소프트웨어의 작동 방식에 대한 자세한 정보를 제공해주십시오. 내 Mac에이 소프트웨어를 설치하거나 Fortify 웹 포털에 내 소스 코드를 업로드해야합니까? iOS 응용 프로그램 검사 용 Fortify 정적 코드 분석기를 찾고 있습니다. – harshit2811