-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Xcode 7.3 changes location of Coverage.profdata #125
Comments
Can't actually repro slather not finding the profdata files with 7.3 beta 2. However, coverage information is also not computed correctly for me. I'm descoping this from 2.0.0 since it needs more investigation and 7.3 is still in beta. |
Seems like in Xcode 7.3 (I'm using beta 4 now), This causes both |
I could make it work again by changing the following line here:
to below line:
But I'm not sure how this can be changed providing backward compatibility. |
I think a reasonable way to deal with this could be checking the Xcode version explicitly, like $ xcodebuild -version
Xcode 6.4 And if that is 7.3 or higher, use the new path. This wouldn't be 100% accurate, as the selected Xcode version isn't necessarily the one used to do the last run for a certain project, but since CI is the most common use case, it should be OK. |
TIL: there is an env var now that points to exact path of Coverage.profdata file:
|
Xcode 7.2 would place Coverage.profdata within
#{build_directory}/**/CodeCoverage/#{self.scheme}/
However in 7.3, Coverage.profdata doesn't get nested within a directory matching the scheme name.
#{build_directory}/**/CodeCoverage/
The text was updated successfully, but these errors were encountered: