iOS swift and objective C project Coverage report is not uploaded on local sonar. Coverage % show -

Hello,

I am try to scan my iOS swift and objective c Project on local sonar. After successful execution of sonar coverage % is not show on localhost: 9000. My sonar version is * Version 7.9.5 (build 38598). I have also installed latest sonar also. I have checkked sonar log I have below error.

javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target. I have seen my time this error on sonar community but not give proper solution for iOS.

Coverage % show -. Please see attached screen shot. Please don’t close this ticket until find the proper solution

Please provide solution thanks in advance.

ERROR: Error processing file named sonar-reports/cobertura.xml
[15:34:27]: ▸ javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
:34:24]: ▸ WARNING: All illegal access operations will be denied in a future release
[15:34:25]: ▸ 15:34:25.805 DEBUG: 'JavaSquidSensor' skipped because there is no related file in current project
[15:34:25]: ▸ 15:34:25.806 DEBUG: 'Import external issues report' skipped because one of the required properties is missing
[15:34:25]: ▸ 15:34:25.807 DEBUG: 'Python Squid Sensor' skipped because there is no related file in current project
[15:34:25]: ▸ 15:34:25.807 DEBUG: 'Cobertura Sensor for Python coverage' skipped because there is no related file in current project
[15:34:25]: ▸ 15:34:25.808 DEBUG: 'PythonXUnitSensor' skipped because there is no related file in current project
[15:34:25]: ▸ 15:34:25.808 DEBUG: 'PylintSensor' skipped because there is no related file in current project
[15:34:25]: ▸ 15:34:25.809 DEBUG: 'PylintImportSensor' skipped because there is no related file in current project
[15:34:25]: ▸ 15:34:25.809 DEBUG: 'Import of Bandit issues' skipped because there is no related file in current project
[15:34:25]: ▸ 15:34:25.810 DEBUG: 'SonarCSS Metrics' skipped because there is no related file in current project
[15:34:25]: ▸ 15:34:25.810 DEBUG: 'SonarCSS Rules' skipped because there is no related file in current project
[15:34:25]: ▸ 15:34:25.811 DEBUG: 'Import of stylelint issues' skipped because there is no related file in current project
[15:34:25]: ▸ 15:34:25.811 DEBUG: 'SonarGo' skipped because there is no related file in current project
[15:34:25]: ▸ 15:34:25.812 DEBUG: 'Go Unit Test Report' skipped because there is no related file in current project
[15:34:25]: ▸ 15:34:25.813 DEBUG: 'Import of go vet issues' skipped because there is no related file in current project
[15:34:25]: ▸ 15:34:25.813 DEBUG: 'Import of Golint issues' skipped because there is no related file in current project
[15:34:25]: ▸ 15:34:25.813 DEBUG: 'Import of GoMetaLinter issues' skipped because there is no related file in current project
[15:34:25]: ▸ 15:34:25.813 DEBUG: 'Kotlin Sensor' skipped because there is no related file in current project
[15:34:25]: ▸ 15:34:25.814 DEBUG: 'Import of detekt issues' skipped because there is no related file in current project

Hi,

I’m quite surprised by your log snippet. Typically, analysis comes to an abrupt end after a PKIX error.

Since yours doesn’t, I’m going to ignore the error. Your main complaint is about coverage. This error:

Indicates that you’ve provided a Cobertura report. Unfortunately, Cobertura is only supported for Flex and Python. Please check the docs to see which formats are supported for Swift and Objective-C.

 
HTH,
Ann