Coder Social home page Coder Social logo

Comments (22)

michaelrourke avatar michaelrourke commented on June 14, 2024 3

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.

Vincentzzg avatar Vincentzzg commented on June 14, 2024

兄弟,问题有解决吗

from oclint.

luqiuan avatar luqiuan commented on June 14, 2024

兄弟,问题有解决吗

兄弟,问题有解决吗?

from oclint.

Vincentzzg avatar Vincentzzg commented on June 14, 2024

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.

michaelrourke avatar michaelrourke commented on June 14, 2024

Yes Xcode14.2 is ok. With OCLint version 23.0. At least for my simple app.

from oclint.

Vincentzzg avatar Vincentzzg commented on June 14, 2024

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.

Vincentzzg avatar Vincentzzg commented on June 14, 2024
image

from oclint.

michaelrourke avatar michaelrourke commented on June 14, 2024

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.

Vincentzzg avatar Vincentzzg commented on June 14, 2024

ok,I will try this version with Xcode14.2

from oclint.

Vincentzzg avatar Vincentzzg commented on June 14, 2024

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.

michaelrourke avatar michaelrourke commented on June 14, 2024

yes. this works with the so called OCLint version 23.0 (which isn't an official release but from lianghuajian)

from oclint.

lshdfp726 avatar lshdfp726 commented on June 14, 2024

基于 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.

manuelzi avatar manuelzi commented on June 14, 2024

To resolve the issue on Xcode 14.3.1, I followed these steps:

  1. Built the OCLint fork by Lianghuajian, which adds support for Xcode 14. You can find more details here.
  2. Set "Supports Mac Catalyst" to "NO" in the app target's Build Settings.
  3. 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.

ryuichi-assistant avatar ryuichi-assistant commented on June 14, 2024

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.

manuelzi avatar manuelzi commented on June 14, 2024

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.

Vincentzzg avatar Vincentzzg commented on June 14, 2024

大家问题有解决吗?我一直在等OCLint的新版本修复这个问题,项目的静态扫描已经停了几个月了

from oclint.

FirstDKS521 avatar FirstDKS521 commented on June 14, 2024

xcode 15, oclint 22.02,解析compile_commands.json时报错,oclint: error: compilation contains multiple jobs: 怎么处理

from oclint.

CodeSnowMonkey avatar CodeSnowMonkey commented on June 14, 2024

xcode 15.1, oclint 22.02,解析compile_commands.json时报错,oclint: error: compilation contains multiple jobs: 怎么处理

from oclint.

ryuichi-assistant avatar ryuichi-assistant commented on June 14, 2024

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.

Coder-Star avatar Coder-Star commented on June 14, 2024

xcode 15.1, oclint 22.02,解析compile_commands.json时报错,oclint: error: compilation contains multiple jobs: 怎么处理

这个有解决吗

from oclint.

FirstDKS521 avatar FirstDKS521 commented on June 14, 2024

xcode 15.1, oclint 22.02,解析compile_commands.json时报错,oclint: error: compilation contains multiple jobs: 怎么处理

这个有解决吗

没有解决,等官方更新

from oclint.

shunsongshiyi avatar shunsongshiyi commented on June 14, 2024

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.

from oclint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.