Comments (22)
Comparing Xcode 14.2 vs Xcode 14.3 oclint-json-compilation-database output yields some differences.
In my case, Xcode 14.3 sometimes issues an extra argument over XCode 14.2:
-ivfsstatcache XXXXXXX.sdkstatcache
Using sed to strip this out of the xcpretty json output before feeding to oclint-json-compilation-database resolves the issue.
sed 's/-ivfsstatcache [^ ]*//g' < compile_commands.json > icompile_commands.json
mv icompile_commands.json compile_commands.json
from oclint.
兄弟,问题有解决吗
from oclint.
兄弟,问题有解决吗
兄弟,问题有解决吗?
from oclint.
Comparing Xcode 14.2 vs Xcode 14.3 oclint-json-compilation-database output yields some differences. In my case, Xcode 14.3 sometimes issues an extra argument over XCode 14.2: -ivfsstatcache XXXXXXX.sdkstatcache
Using sed to strip this out of the xcpretty json output before feeding to oclint-json-compilation-database resolves the issue.
sed 's/-ivfsstatcache [^ ]*//g' < compile_commands.json > icompile_commands.json mv icompile_commands.json compile_commands.json
xcode14.2 is OK?
from oclint.
Yes Xcode14.2 is ok. With OCLint version 23.0. At least for my simple app.
from oclint.
Yes Xcode14.2 is ok. With OCLint version 23.0. At least for my simple app.
I will try Xcode14.2。But the lastest version of OCLint is 22.02.
from oclint.
from oclint.
Sorry for the confusion. With the move to Apple silicon I followed the recommendations in the issue titled Please upgrade oclint to llvm14.0 so built from this source: https://github.com/Lianghuajian/oclint/tree/support_xcode14
from oclint.
ok,I will try this version with Xcode14.2
from oclint.
Comparing Xcode 14.2 vs Xcode 14.3 oclint-json-compilation-database output yields some differences. In my case, Xcode 14.3 sometimes issues an extra argument over XCode 14.2: -ivfsstatcache XXXXXXX.sdkstatcache
Using sed to strip this out of the xcpretty json output before feeding to oclint-json-compilation-database resolves the issue.
sed 's/-ivfsstatcache [^ ]*//g' < compile_commands.json > icompile_commands.json mv icompile_commands.json compile_commands.json
Is this solution with OCLint version 23.0?
from oclint.
yes. this works with the so called OCLint version 23.0 (which isn't an official release but from lianghuajian)
from oclint.
基于 https://github.com/Lianghuajian/oclint fork 一份源码,修改了oclint 编译脚本重新基于clang 14.0.6 编译的一份oclint,产物,测试在xcode14.3 上可以正常工作,具体怎么操作可以 下载编译好的产物操操作一下: https://github.com/lshdfp726/oclint/releases/tag/23.0_clang%E2%80%94%E2%80%9414.0.6
from oclint.
To resolve the issue on Xcode 14.3.1, I followed these steps:
- Built the OCLint fork by Lianghuajian, which adds support for Xcode 14. You can find more details here.
- Set "Supports Mac Catalyst" to "NO" in the app target's Build Settings.
- Removed extra arguments from
compile_commands.json
that are automatically added by Xcode 14.3.1, as suggested by michaelrourke. More information can be found here.
from oclint.
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.
from oclint.
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.
Ok, I was using version 22.02 when I experienced this issue.
from oclint.
大家问题有解决吗?我一直在等OCLint的新版本修复这个问题,项目的静态扫描已经停了几个月了
from oclint.
xcode 15, oclint 22.02,解析compile_commands.json时报错,oclint: error: compilation contains multiple jobs: 怎么处理
from oclint.
xcode 15.1, oclint 22.02,解析compile_commands.json时报错,oclint: error: compilation contains multiple jobs: 怎么处理
from oclint.
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.
from oclint.
xcode 15.1, oclint 22.02,解析compile_commands.json时报错,oclint: error: compilation contains multiple jobs: 怎么处理
这个有解决吗
from oclint.
xcode 15.1, oclint 22.02,解析compile_commands.json时报错,oclint: error: compilation contains multiple jobs: 怎么处理
这个有解决吗
没有解决,等官方更新
from oclint.
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.
from oclint.
Related Issues (20)
- Compile successfully but report has many compiler error but Xcode is Normal compilation success HOT 13
- lLVVM Error HOT 2
- project use MMKV lib could analyse error HOT 5
- How do I use the same compiler as Xcode? HOT 6
- what version are clang and llvm oclint version 22.02? HOT 2
- Crash on Xcode 14 when used via Fastlane HOT 2
- xcodebuild failed when use OCLint in Xcode HOT 6
- xcode14 not work HOT 3
- oclint doesn't work: a lot of compiler errors in oclint_result.html. Xcode 14.1 oclint 22.02 HOT 16
- sonar-reports/SonarDemo-oclint.xml' failed with error code: 6 HOT 2
- Request for enhancement: Upgrade OCLint to LLVM 15.0.7, moving away from the prior version, LLVM 13.0.0 HOT 2
- OClint on windows 10 HOT 2
- Please upgrade oclint to llvm14.0 HOT 16
- Feature request: adjust threshold for one function HOT 2
- oclint: error: compilation contains multiple jobs: OCLint 22.02 + MacOS Ventura 13.0 + XCode 14.3 HOT 11
- high amount of RAM used HOT 2
- With the same compilation options, clang compiles successfully, but oclint encounters problems during compilation HOT 4
- Xcode 15, OCLint 22.02, oclint: error: compilation contains multiple jobs: HOT 6
- Xcode 15.3,the output report oclintReport.html does not match expectations
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oclint.