xcov: Unable to find any .xccoverage file.

xCov 0.5

command: xcov -w WORKSPACE.xcworkspace -s SCHEME

return: Unable to find any .xccoverage file. Make sure you have enabled ‘Gather code coverage’ setting on your scheme settings. Alternatively you can provide the full path to your .xccoverage file.

Gather coverage data option : screenshot 2016-03-15 10 05 50

As we can see, we have result from coverage screenshot 2016-03-15 10 07 02

File is present in /DerivedData/ folder screenshot 2016-03-15 10 07 47

This configuration was working on older version

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 21 (4 by maintainers)

Most upvoted comments

👍 it worked perfectly with escapable characters in the path. thanks for merging it.

Hi @odemolliens 👋

Thank you for reporting the issue. Could you please post the entire log? Like this:

nakiostudio@MBP $ xcov -w LystSDK.xcworkspace -s LystSDK
[11:07:16]: xcrun xcodebuild -list -workspace 'LystSDK.xcworkspace'

+-----------------------------+---------------------+
|               Summary for xCov 0.5                |
+-----------------------------+---------------------+
| workspace                   | LystSDK.xcworkspace |
| scheme                      | LystSDK             |
| output_directory            | ./xcov_report       |
| minimum_coverage_percentage | 0.0                 |
| include_test_targets        | false               |
| skip_slack                  | false               |
+-----------------------------+---------------------+

[11:07:18]: $ /Users/nakiostudio/.rvm/gems/ruby-2.2.1/gems/xcov-0.5/lib/xcov-core/bin/xcov-core -s /Users/nakiostudio/Library/Developer/Xcode/DerivedData/LystSDK-eirtcvknlftjfiavurorndrssbgg/Logs/Test/7C6071CD-6B31-4FE8-B1B1-15A534492DCA.xccoverage -o /var/folders/m7/kzdcwc2559960r9g12hn7m8m0000gn/T/report.json20160315-5848-1q8tpj9
[11:07:18]: ▸ Loading...
[11:07:18]: ▸ ------ xCov-Core ------
[11:07:18]: ▸ Opening .xccoverage file at path: /Users/nakiostudio/Library/Developer/Xcode/DerivedData/LystSDK-eirtcvknlftjfiavurorndrssbgg/Logs/Test/7C6071CD-6B31-4FE8-B1B1-15A534492DCA.xccoverage
[11:07:18]: ▸ Parsing .xccoverage file...
[11:07:18]: ▸ File successfully parsed
[11:07:18]: ▸ Serializing coverage report...
[11:07:18]: ▸ Report successfully serialized
[11:07:18]: ▸ Writing report on disk...
[11:07:18]: ▸ Coverage report successfully created at path: /var/folders/m7/kzdcwc2559960r9g12hn7m8m0000gn/T/report.json20160315-5848-1q8tpj9
+-------------------+-----------+
|     xCov Coverage Report      |
+-------------------+-----------+
| LystSDK.framework | 91%       |
+-------------------+-----------+

Thanks!