openbakery / gradle-xcodePlugin

gradle plugin for building Xcode Projects for iOS, watchOS, macOS or tvOS
Apache License 2.0
458 stars 129 forks source link

Xcode 9 Coverage #371

Closed bamx23 closed 6 years ago

bamx23 commented 7 years ago

There is a problem with coverage report generation and Xcode 9. Xcode 8 stores coverage data in build/derivedData/Build/Intermediates/CodeCoverage/, but Xcode 9 plases it into build/derivedData/Build/ProfileData/<SOME_GUID>/.

phatblat commented 6 years ago

I noticed the coverage task not picking up the coverage data from some Xcode 9 projects and captured some notes but didn't get around to creating an issue. Thanks for doing that @bamx23

Xcode 8

Xcode 9

The GUID in the Xcode 9 paths appears to be a simulator identifier:

 xcrun simctl list | grep 68050F37-350D-4C3A-B1B9-6A427974C855
    iPhone 6s (68050F37-350D-4C3A-B1B9-6A427974C855) (Shutdown)

Now, the question is if the plugin can determine the simulator GUID and pass that to the coverage task.

phatblat commented 6 years ago

Can this be closed now that #381 has been merged?

bamx23 commented 6 years ago

Oh, sure! Thank you!