Skip to content
This documentation applies to Codacy Self-hosted v1.4.0

For the latest updates and improvements, see the latest Cloud documentation instead.

Swift & Objective-C support

To use Swift/Objective-C and XCode coverage reporter, you should use Slather to convert XCode report into Cobertura format.

This can be achieve by running this commands on the CI:

gem install slather
slather coverage -x --output-directory <report-output-dir> --scheme <project-name> <project-name>.xcodeproj

This will generate a cobertura.xml inside <report-output-dir> folder. After this, call our script:

bash <(curl -Ls https://coverage.codacy.com/get.sh)

Share your feedback 📢

Did this page help you?

Thanks for the feedback! Is there anything else you'd like to tell us about this page?

We're sorry to hear that. Please let us know what we can improve:

Alternatively, you can create a more detailed issue on our GitHub repository.

Thanks for helping improve the Codacy documentation.

If you have a question or need help please contact support@codacy.com.

Last modified April 16, 2020