{"action":"created","issue":{"url":"https://api.github.com/repos/Backelite/sonar-swift/issues/17","repository_url":"https://api.github.com/repos/Backelite/sonar-swift","labels_url":"https://api.github.com/repos/Backelite/sonar-swift/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/Backelite/sonar-swift/issues/17/comments","events_url":"https://api.github.com/repos/Backelite/sonar-swift/issues/17/events","html_url":"https://github.com/Backelite/sonar-swift/issues/17","id":143507624,"number":17,"title":"error: Failed to load coverage: No such file or directory","user":{"login":"chaosnya","id":919982,"avatar_url":"https://avatars.githubusercontent.com/u/919982?v=3","gravatar_id":"","url":"https://api.github.com/users/chaosnya","html_url":"https://github.com/chaosnya","followers_url":"https://api.github.com/users/chaosnya/followers","following_url":"https://api.github.com/users/chaosnya/following{/other_user}","gists_url":"https://api.github.com/users/chaosnya/gists{/gist_id}","starred_url":"https://api.github.com/users/chaosnya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chaosnya/subscriptions","organizations_url":"https://api.github.com/users/chaosnya/orgs","repos_url":"https://api.github.com/users/chaosnya/repos","events_url":"https://api.github.com/users/chaosnya/events{/privacy}","received_events_url":"https://api.github.com/users/chaosnya/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-25T14:12:40Z","updated_at":"2016-04-09T09:19:54Z","closed_at":null,"body":"Hello,\r\n\r\nI tried this sonar plugin with projects using or not CocoaPod and a new project from scratch. Every-time i get the following error :\r\n\r\n> /Library/Ruby/Gems/2.0.0/gems/slather-1.8.1/lib/slather/project.rb:142:in `profdata_llvm_cov_output': No Coverage.profdata files found. Please make sure the \"Code Coverage\" checkbox is enabled in your scheme's Test action or the build_directory property is set.\r\n> \tfrom /Library/Ruby/Gems/2.0.0/gems/slather-1.8.1/lib/slather/project.rb:98:in `profdata_coverage_files'\r\n> \tfrom /Library/Ruby/Gems/2.0.0/gems/slather-1.8.1/lib/slather/project.rb:75:in `coverage_files'\r\n> \tfrom /Library/Ruby/Gems/2.0.0/gems/slather-1.8.1/lib/slather/coverage_service/cobertura_xml_output.rb:17:in `post'\r\n> \tfrom /Library/Ruby/Gems/2.0.0/gems/slather-1.8.1/bin/slather:80:in `post'\r\n> \tfrom /Library/Ruby/Gems/2.0.0/gems/slather-1.8.1/bin/slather:46:in `execute'\r\n> \tfrom /Library/Ruby/Gems/2.0.0/gems/clamp-0.6.5/lib/clamp/command.rb:67:in `run'\r\n> \tfrom /Library/Ruby/Gems/2.0.0/gems/clamp-0.6.5/lib/clamp/subcommand/execution.rb:11:in `execute'\r\n> \tfrom /Library/Ruby/Gems/2.0.0/gems/clamp-0.6.5/lib/clamp/command.rb:67:in `run'\r\n> \tfrom /Library/Ruby/Gems/2.0.0/gems/clamp-0.6.5/lib/clamp/command.rb:132:in `run'\r\n> \tfrom /Library/Ruby/Gems/2.0.0/gems/clamp-0.6.5/lib/clamp.rb:6:in `Clamp'\r\n> \tfrom /Library/Ruby/Gems/2.0.0/gems/slather-1.8.1/bin/slather:6:in `<top (required)>'\r\n> \tfrom /usr/local/bin/slather:23:in `load'\r\n> \tfrom /usr/local/bin/slather:23:in `<main>'\r\n> ERROR - Command 'slather coverage --input-format profdata -i .*Tests.* --cobertura-xml --output-directory sonar-reports --scheme TestSonar TestSonar.xcodeproj' failed with error code: 1\r\n\r\n\r\nI checked, the \"Coverage.profdata\" file exists on derived data directory.\r\nAnother developer from my company obtained the same result on other projects.\r\nI working with XCode 7.3 (same issue with 7.2.1) on El capitan.\r\n\r\nAny idea ?\r\n\r\nthe only workaround i found, is to comment the following line on the run script :\r\n```\r\nrunCommand /dev/stdout $SLATHER_CMD coverage --input-format profdata $excludedCommandLineFlags --cobertura-xml --output-directory sonar-reports --scheme \"$appScheme\" $firstProject\r\nmv sonar-reports/cobertura.xml sonar-reports/coverage.xml\r\n```"},"comment":{"url":"https://api.github.com/repos/Backelite/sonar-swift/issues/comments/207751703","html_url":"https://github.com/Backelite/sonar-swift/issues/17#issuecomment-207751703","issue_url":"https://api.github.com/repos/Backelite/sonar-swift/issues/17","id":207751703,"user":{"login":"grevolution","id":343299,"avatar_url":"https://avatars.githubusercontent.com/u/343299?v=3","gravatar_id":"","url":"https://api.github.com/users/grevolution","html_url":"https://github.com/grevolution","followers_url":"https://api.github.com/users/grevolution/followers","following_url":"https://api.github.com/users/grevolution/following{/other_user}","gists_url":"https://api.github.com/users/grevolution/gists{/gist_id}","starred_url":"https://api.github.com/users/grevolution/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grevolution/subscriptions","organizations_url":"https://api.github.com/users/grevolution/orgs","repos_url":"https://api.github.com/users/grevolution/repos","events_url":"https://api.github.com/users/grevolution/events{/privacy}","received_events_url":"https://api.github.com/users/grevolution/received_events","type":"User","site_admin":false},"created_at":"2016-04-09T09:19:54Z","updated_at":"2016-04-09T09:19:54Z","body":"slather 2.1.0 is supposed to fix the issue and also seems to work with the plugin."}}