diff --git a/CHANGELOG.md b/CHANGELOG.md index 7901bf6c..145707c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # CHANGELOG ## master +* Xcode 7.3 compatibility (updated path returned by `profdata_coverage_dir`) + [Kent Sutherland](https://github.com/ksuther) + [#125](https://github.com/SlatherOrg/slather/issues/125), [#169](https://github.com/SlatherOrg/slather/pull/169) + * Improve matching of xctest bundles when using `--binary-basename` [Kent Sutherland](https://github.com/ksuther) [#167](https://github.com/SlatherOrg/slather/pull/167) diff --git a/lib/slather/project.rb b/lib/slather/project.rb index d12f1077..990a9503 100644 --- a/lib/slather/project.rb +++ b/lib/slather/project.rb @@ -120,6 +120,11 @@ def profdata_coverage_dir dir = Dir[File.join("#{build_directory}","/**/#{first_product_name}")].first end + if dir == nil + # Xcode 7.3 moved the location of Coverage.profdata + dir = Dir[File.join("#{build_directory}","/**/CodeCoverage")].first + end + raise StandardError, "No coverage directory found. Are you sure your project is setup for generating coverage files? Try `slather setup your/project.xcodeproj`" unless dir != nil dir end