danger-swift-coverage icon indicating copy to clipboard operation
danger-swift-coverage copied to clipboard

Xcode 11.2.1 cannot read the new .xcresult format

Open duyquang91 opened this issue 4 years ago • 8 comments

It seems like the same issue has been fixed for Xcode 11.1. Now it is happening on the Xcode 11.2.1, could you please take a look?

duyquang91 avatar Nov 24 '19 09:11 duyquang91

Ok let me have a look

f-meloni avatar Nov 26 '19 20:11 f-meloni

@f-meloni I don't use the SPM, I use the marathon instead, any solution for that?

duyquang91 avatar Nov 28 '19 08:11 duyquang91

I've tried it with both -resultBundlePath build/results and without it in the xcodebuild command, it works in both cases with XCode 11.2.1

f-meloni avatar Nov 30 '19 13:11 f-meloni

Is this now an issue in Xcode 11.3 again? I'm getting Requested but did not find extension point with identifier Xcode.IDEFoundation.IDEResultKitSerializationConverter when passing an xcresult

ecerney avatar Jan 10 '20 19:01 ecerney

@ecerney I've updated travis on https://github.com/f-meloni/danger-swift-coverage/pull/20 to xcode 11.3, and looks working, then should work in the previous versions too

f-meloni avatar Jan 11 '20 14:01 f-meloni

I've got the same error with Xcode 11.5 on Bitrise:

+ danger-swift ci
objc[16991]: Class _TtC7OctoKit4File is implemented in both /usr/local/Cellar/danger-swift/3.3.2/lib/danger/libDanger.dylib (0x113c81778) and /Users/vagrant/.danger-swift/Scripts/Cache/-Users-vagrant-git-_dangerfile_imports/.build/x86_64-apple-macosx/debug/libDangerDependencies.dylib (0x113a21c28). One of the two will be used. Which one is .

objc[16991]: Class _TtC7OctoKit4Gist is implemented in both /usr/local/Cellar/danger-swift/3.3.2/lib/danger/libDanger.dylib (0x113c81a30) and /Users/vagrant/.danger-swift/Scripts/Cache/-Users-vagrant-git-_dangerfile_imports/.build/x86_64-apple-macosx/debug/libDangerDependencies.dylib (0x113a21ed8). One of the two will be used. Which one is .
objc[16991]: Class _TtC7OctoKit5Issue is implemented in both /usr/local/Cellar/danger-swift/3.3.2/lib/danger/libDanger.dylib (0x113c81e60) and /Users/vagrant/.danger-swift/Scripts/Cache/-Users-vagrant-git-_dangerfile_imports/.build/x86_64-apple-macosx/debug/libDangerDependencies.dylib (0x113a22320). One of the two will be used. Which one is .
objc[16991]: Class _TtC7OctoKit5Label is implemented in both /usr/local/Cellar/danger-swift/3.3.2/lib/danger/libDanger.dylib (0x113c822b8) and /Users/vagrant/.danger-swift/Scripts/Cache/-Users-vagrant-git-_dangerfile_imports/.build/x86_64-apple-macosx/debug/libDangerDependencies.dylib (0x113a22730). One of the two will be used. Which one is undefined.
objc[16991]: Class _TtC7OctoKit9Milestone is implemented in both /usr/local/Cellar/danger-swift/3.3.2/lib/danger/libDanger.dylib (0x113c82470) and /Users/vagrant/.danger-swift/Scripts/Cache/-Users-vagrant-git-_dangerfile_imports/.build/x86_64-apple-macosx/debug/libDangerDependencies.dylib (0x113a228d8). One of the two will be used. Which one is undefined.
objc[16991]: Class _TtC7OctoKit11PullRequest is implemented in both /usr/local/Cellar/danger-swift/3.3.2/lib/danger/libDanger.dylib (0x113c82830) and /Users/vagrant/.danger-swift/Scripts/Cache/-Users-vagrant-git-_dangerfile_imports/.build/x86_64-apple-macosx/debug/libDangerDependencies.dylib (0x113a22ca0). One of the two will be used. Which one is undefined.
objc[16991]: Class _TtC7OctoKit10Repository is implemented in both /usr/local/Cellar/danger-swift/3.3.2/lib/danger/libDanger.dylib (0x113c82d50) and /Users/vagrant/.danger-swift/Scripts/Cache/-Users-vagrant-git-_dangerfile_imports/.build/x86_64-apple-macosx/debug/libDangerDependencies.dylib (0x113a231b0). One of the two will be used. Which one is undefined.
objc[16991]: Class _TtC7OctoKit4User is implemented in both /usr/local/Cellar/danger-swift/3.3.2/lib/danger/libDanger.dylib (0x113c83100) and /Users/vagrant/.danger-swift/Scripts/Cache/-Users-vagrant-git-_dangerfile_imports/.build/x86_64-apple-macosx/debug/libDangerDependencies.dylib (0x113a23578). One of the two will be used. Which one is undefined.

2020-07-06 21:50:08.298 xccov[16996:69434] Requested but did not find extension point with identifier Xcode.IDEFoundation.IDEResultKitSerializationConverter

The code I'm running is something like:

let bitriseXCResultPath = Process.runShell("echo $BITRISE_XCRESULT_PATH")
xcodeBuildCoverage(.xcresultBundle(bitriseXCResultPath), minimumCoverage: 60)

$BITRISE_XCRESULT_PATH is Xcode Test step's output which refers to the path of .xcresult file

el-hoshino avatar Jul 06 '20 21:07 el-hoshino

@el-hoshino Please verify that the path has .xcresult at the end, the newer version doesn't work with the folder path

PS. You can probably use ProcessInfo.processInfo.environment["BITRISE_XCRESULT_PATH"] to get the path

f-meloni avatar Jul 08 '20 12:07 f-meloni

@f-meloni I tried ProcessInfo.processInfo.environment["BITRISE_XCRESULT_PATH"] and it worked! Thanks a lot!!

el-hoshino avatar Jul 09 '20 08:07 el-hoshino