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, OCLint 22.02, oclint: error: compilation contains multiple jobs: #654

Open
FirstDKS521 opened this issue Nov 23, 2023 · 6 comments

Comments

@FirstDKS521
Copy link

Issue Summary

A brief but thorough description of the issue.
oclint: error: compilation contains multiple jobs:

Environment

  • Operation system name and version: macOS Sonoma 14.0
  • Xcode: 15.0
  • OCLint version:22.02
  • How OCLint is installed: local build? prebuilt binary downloaded from github? homebrew install? others?
    prebuilt binary downloaded from github

Reproduction Steps

Detailed steps to reproduce the issue.
oclint-json-compilation-database -- -report-type xcode | xcpretty

Sample code

oclint-json-compilation-database -- -report-type xcode | xcpretty

C
C++
Objective-C

Command to run OCLint with the code above.

Expected Behavior

What do you expect to happen as a result of the reproduction steps?
Generate analysis report

Actual Behavior

What currently happens as a result of the reproduction steps?
oclint: error: compilation contains multiple jobs:

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?

@ryuichi-assistant
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.

Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment.

@FirstDKS521
Copy link
Author

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.

Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment.

The latest version of OCLint still has this problem, I hope the author can fix it

@ARiezn
Copy link

ARiezn commented Feb 7, 2024

I can confirm that the latest version of OCLint 22.02 still has the problem.

I've got the same error with Xcode 15.2 and macOS Sonoma 14.2.1.

Tried adding COMPILER_INDEX_STORE_ENABLE=NO and specifying a single architecture when building:

$ xcodebuild COMPILER_INDEX_STORE_ENABLE=NO -configuration Debug -arch x86_64 -sdk iphonesimulator | xcpretty -r json-compilation-database -o compile_commands.json

But still running

$ oclint-json-compilation-database -- -report-type xcode

ends up with oclint: error: compilation contains multiple jobs:

Closed issues #616 and #618 seem to relate only to older Xcode 13.

@yehe01
Copy link

yehe01 commented Mar 15, 2024

Having the same issue on the same environment.

@shunsongshiyi
Copy link

Having the same issue on the same environment.

image
My same issueoclint: error: compilation contains multiple jobs fixed by remove -ivfsstatcache /Users/mrzhao/derivedData/SDKStatCaches.noindex/macosx14.0-23A334-4a76ee93ef69e462914ffe9883de22b8.sdkstatcache in compile_command.json
then run oclint-json-compilation-database will generate oclint report successfully.

@ryuichi-assistant
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.

Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment.

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

No branches or pull requests

5 participants