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
oclint: error: one compiler command contains multiple jobs: #462
Comments
Also reported in #441 |
Appears this might be related to the new "Enable-Index while Building" setting. By disabling
|
This type of issues, based on its reporting history, always happen during the time from June (WWDC, and developer beta versions) to Sept (the GM is finally available), when many things are in a transition unstable state. I speculate this is the same case this year. Usually a new OCLint that matches the macOS/Xcode version will fix the issue. The High Sierra was finally officially released yesterday, so I can cut an OCLint release this week. Before that, you may pre-download from this link https://github.com/oclint/oclint/releases/download/untagged-91b3ee2c6975e6f3ed68/oclint-0.13-x86_64-darwin-17.0.0.tar.gz, and manually set up locally. |
Thanks @ryuichis, I'll test that out. Your link doesn't work for me? |
I can also confirm that the combination of disabling |
https://github.com/oclint/oclint/releases/download/untagged-91b3ee2c6975e6f3ed68/oclint-0.13-x86_64-darwin-17.0.0.tar.gz ---Update: |
If you are using Cocoa Pods don't forget to set COMPILER_INDEX_STORE_ENABLE for all pod targets.
|
Xcode9, macOS 10.12.6 and oclint 0.13 doesn't work with disabling COMPILER_INDEX_STORE_ENABLE (=NO). |
same as @kronenthaler, not work |
same as @kronenthaler , not work again |
Xcode9, macOS 10.12.6 and oclint 0.13 Using test project and setting COMPILER_INDEX_STORE_ENABLE = NO on project build setting all goes fine. In my project:
As per http://oclint-docs.readthedocs.io/en/stable/manual/oclint.html means
But the source code compiles properly ... |
same as @kronenthaler, not work. |
It works after settings COMPILER_INDEX_STORE_ENABLE = NO on all projects (pods and not).But So many "1 error generated" logs ... |
I have the same problem. And the methods above did not work for me. |
macOS Sierra 10.12.6 I've dowloaded archive from https://github.com/oclint/oclint/releases/download/v0.13/oclint-0.13-x86_64-darwin-17.0.0.tar.gz and then replaced my installed oclint files and folders with the appropriate ones from the archive. But unfortunately the error still occurs. |
It works for me. I using MacOS 10.13, XCode Version 9.0 (9A235), OCLint 0.13. 1. |
thanks @congpc . |
Had same issue, using COMPILER_INDEX_STORE_ENABLE=NO fixed it for me |
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. |
I had same issue, |
Any Idea how to fix this issue for MacOS 10.13.3, Xcode 9.2, OCLint 0.13? |
same as @kronenthaler , not work |
I tried, when u use command from the terminal, it works, while u use script from Xcode, it fails. |
It works for me, thank you very much. |
I have already set COMPILER_INDEX_STORE_ENABLE=NO. but it doesn't work for me. Is any idea to fix it? |
Any update on this? Still not working on MacOS 10.14.1, Xcode 10.1 with |
@shorbenko fixed, I set COMPILER_INDEX_STORE_ENABLE=NO, and update my podfile to set COMPILER_INDEX_STORE_ENABLE for all pod targets. |
Good morning |
Setting How? Setting |
I have the same problem. Environment: |
Thanks @congpc, also works for me. |
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. |
I solved it by update to the latest version. |
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. |
This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem. |
Issue Summary
Seeing a similar issue to #221, where I get an error of
oclint: error: one compiler command contains multiple jobs:
when trying to run OCLint.Environment
Reproduction Steps
Download attached zip file, run
build.sh
Sample code
See sample project
Expected Behavior
Should be able to lint.
Actual Behavior
oclint: error: one compiler command contains multiple jobs:
Sample project
https://drive.google.com/file/d/0B7brsNYK8KqpS1BKR0djZE1hbE0/view?usp=sharing
The text was updated successfully, but these errors were encountered: