Trying to get SonarQube configured for our Xcode project. I created a new SonarQube project and followed the steps with the build wrapper and didn’t have any issues there. After running the Scanner we get an “ERROR: Error during SonarScanner execution java.lang.IllegalStateException: An error occurred while analyzing the following compilation unit:” error.
I can not attach the generated sonar-cfamily-reproducer.zip file because it exceeds the 4MB size limit for uploads.
The terminal output mentioned providing that file to SonarSource support, is this the correct method of doing so?
Sorry about that, Can you try to upload it somewhere using your favorite tool(dropbox, google drive…) and share the link. If you prefer I can send you a PM to share privately.
@jblaker-brightcove, The referenced issue is already fixed.
The issue you are facing is generic, will have to look at the reproducer to diagnose.
if this is the only file failing you can exclude it from the analysis using sonar.exclusions until I have a deeper look.
I noticed that you are on LTS CFamily 6.20. I got misled since you used the SonarCloud tag.
You are probably suffering from the same problem. I will confirm that and get back to you.