Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode 15.3,the output report oclintReport.html does not match expectations #655

Open
YiFan-Tong opened this issue Apr 11, 2024 · 0 comments

Comments

@YiFan-Tong
Copy link

Issue Summary

A brief but thorough description of the issue.
oclint: error: compilation contains multiple jobs:
生成的html报告没有关于业务代码的分析,且明明已经设置不分析Pods文件夹内容,但是报告中仍然体现了

Environment

  • Operation system name and version:macOS Sonoma 14.4
  • xcode: 15.3
  • OCLint version:22.02
  • How OCLint is installed: local build? prebuilt binary downloaded from github? homebrew install? others?
    以上安装方法都试过,有相同的报错

Reproduction Steps

Detailed steps to reproduce the issue.
xcodebuild **** | xcpretty -r json-compilation-database -o compile_commands.json
oclint-json-compilation-database -e Pods -e Applications -- -report-type html -o oclintReport.html

Sample code

xcodebuild **** | xcpretty -r json-compilation-database -o compile_commands.json
oclint-json-compilation-database -e Pods -e Applications -- -report-type html -o oclintReport.html

Command to run OCLint with the code above.

Expected Behavior

What do you expect to happen as a result of the reproduction steps?
生成一份正确的分析报告

Actual Behavior

What currently happens as a result of the reproduction steps?

  1. oclint: error: compilation contains multiple jobs:
    参考 https://github.com/oclint/oclint/issues/654,
    处理方式: oclint: error: compilation contains multiple jobs fixed by remove -ivfsstatcache /Users/mrzhao/derivedData/SDKStatCaches.noindex/macosx14.0-23A334-4a76ee93ef69e462914ffe9883de22b8.sdkstatcache in compile_command.json

  2. 生成的oclintReport.html内容不符和预期

  • 我明明 oclint-json-compilation-database -e Pods,但是oclintReport.html里面还是有Pods相关
  • 为什么会有 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h 这类的分析报告 ?
  • 我想要分析的业务代码在报告中没有体现
    image
  1. 我找了另外一台Mac,xcode version:12.4,同一分代码,同样的操作,生成的oclintReport.html是我想要的
    image

  2. 我并不想降低xcode版本,怎么才能在xcode 15.3 使用oclint 来工作 ???

Even Better

Is your project open sourced? If yes, can you point us to your repository?
If not, is it possible to make a small project to illustrate the problem?
If not, can you create a gist with your sample code for us?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant