With Xcode 10.2, code coverage file generated by xccov can not be opened in the finder. We can generate xcresult file by enabling the code coverage for this project
$ $ xcodebuild -project XCCov-Demo.xcodeproj/ -scheme XCCov-Demo -derivedDataPath Build/ -destination 'platform=iOS Simulator,OS=12.2,name=iPhone Xʀ' -enableCodeCoverage YES clean build test CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO`
Now if we navigate the derived data in the build
$ cd Build/Logs/Test/
$ open .
Click on the `xcresultz directory. You will see following
