ERROR: Caused by: Line 2247 of report refers to a file with an unknown language: Coverage_Build/xyz/SourcePackages/checkouts/Amplitude-iOS/Sources/Amplitude/AMPDatabaseHelper.m
Amplitude is a third party library we are using, integrated via SPM. We do not need this (or any of the third party library source code) to be analyzed.
which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
SonarQube - sonar-scanner 220.127.116.116
what are you trying to achieve
Code coverage reporting for an iOS project
what have you tried so far to achieve this
- Settings in sonar.project.properties to ignore C/C++/Objective-C files
To confirm that this was being read, I tried a run with
which resulted in a failure because we don’t have the wrapper stuff. We don’t want to analyze any of the C languages, so we don’t plan to add the wrapper. This was just a test to confirm that the settings were being read. They are.
- Settings in sonar.project.properties to exclude the SourcePackages directory
I’d be grateful for any help anyone can offer with this issue. THanks!
EDIT/UPDATE: After switching the third party library manager for the Amplitude package from the native SPM (Swift Package Manager) to Cocoapods, the error did not occur for Amplitude, but rather the next 3rd party library on the list of libraries integrated via SPM. I’m not sure what to do with this information and still look forward to any suggestions anyone may have. (Reverting back to cocoapods would be a pretty large setback for us.)