HP强化Ios中的扫描错误

时间:2015-05-21 08:35:43

标签: fortify

您好我正在尝试生成reaport,但我收到的警告如下,并且没有生成报告。请问你帮帮我吗?

[警告]:NST文件:/Users/xxxx/.fortify/sca6.2/build/yyyyy/Classes/AFNetworking/AFHTTPClient.m.nst不存在或已删除。

我正在使用以下步骤扫描代码。除了步骤1和步骤1之外,我在扫描代码期间的第三步中收到警告2正在为我工​​作。

  1. sourceanalyzer-4.21 -b $ {project} -clean

  2. sourceanalyzer-4.21 -Xmx3G -debug -b $ {project} -logfile $ {project} -trans.log xcodebuild -project $ {project} .xcodeproj -sdk iphonesimulator7.1

  3. sourceanalyzer-4.21 -Xmx3G -b $ {project} -scan -f $ {project} .fpr

  4. ReportGenerator -format pdf -f $ {project} .pdf -source $ {project} .fpr

1 个答案:

答案 0 :(得分:0)

Fortify generates NST files during compilation, these NST files together generate one combined FPR file. If NST files are not generated, then you may not get an appropriate fpr.

sourceanalyzer-4.21 -Xmx3G -debug -b ${project} -logfile ${project}-trans.log xcodebuild -project ${project}.xcodeproj -sdk iphonesimulator

If you want to use iphoneos sdk, you must make sure that "i386" is listed in the Valid Architectures setting.