Mục Lục
1. Overview
This article is written to resolve “compilation contains multiple jobs” issue of OCLint 22.0.
Currently, OClint 22.0 cannot fix this issue. Fortunately, Lianghuajian released a an unofficial release OCLint 23.0 to fix this issue.
https://github.com/Lianghuajian/oclint/tree/support_xcode14
2. Build and Install OCLint 23.0
3. Using a workaround to remove unexpected text
Add 2 line below to your command line to remove unexpected text in code analysis result. The 2 lines must be above oclint-json-compilation-database command line.
sed 's/-ivfsstatcache [^ ]*//g' < compile_commands.json > icompile_commands.json
mv icompile_commands.json compile_commands.json
oclint-json-compilation-database -e path/to/excluded/files -v -rc=LONG_LINE=120 -max-priority-1=100 -max-priority-2=50
4. XCode 15.2
Please note that this workaround works with XCode 15.2 and does not work with 15.3.
Thank you and good luck!
Xin chào các bạn!
Bài viết này dùng AI ChatGPT viết sau đó được tôi chọn lựa, biên tập lại nội dung, chỉ một phần nhỏ các bài là tôi tự viết. Nội dung thể hiện ý chí mang tính cá nhân về các vấn đề của tôi và giải pháp. Tôi lưu tại website này để tra cứu và chia sẻ cho cộng đồng. Tôi tin rằng nội dung này giải quyết vấn đề của tôi thì cũng giải quyết vấn đề của các bạn.
Tôi là Minh, sống tại Hà Nội. Tôi là kỹ sư phần mềm với hơn 20 năm kinh nghiệm. Hiện nay, công việc chính của tôi là phát triển các app trên iOS và Android. Các ngôn ngữ và framework yêu thích của tôi là Swift, Objective-C, Java, Kotlin, .NET, HTML, JavaScript, CSS, Bootstrap, jQuery, AngularJS, Angular…
Các bạn có thể tải app của tôi trên App Store hoặc Google Play:
QuestionBank-Ôn thi vào 10: phiên bản iOS, phiên bản Android
TypingTest by QuestionBank: phiên bản iOS, phiên bản Android
Xin cảm ơn,
Minh