How to get code coverage generation for ObjC targets?

I'm trying to get a code coverage report using llvm-cov for Objective-C target but no luck so far, though it works fine for Swift target. I've created a sample (swift 5.2) if someone wants to try.


swift test --enable-test-discovery --enable-code-coverage


xcrun llvm-cov report .build/debug/spmObjCovPackageTests.xctest/Contents/MacOS/spmObjCovPackageTests -instr-profile .build/debug/codecov/default.profdata -ignore-filename-regex=".build|Tests"

Have I missed something? Is it expected behavior/bug? Thanks!