jsh*_*py8 5 xcode continuous-integration code-coverage xcodebuild ios
多年来我一直在 CI 上使用以下命令来生成代码覆盖率报告:
\nxcrun xccov view --report --json path/to/App.xcresult > ./test_output/reports/xccov.json\nRun Code Online (Sandbox Code Playgroud)\n在最后一天(我不确定发生了什么变化),我开始收到此错误:
\n2023-11-02 23:24:36.067 xccov[22876:146900] Requested but did not find extension point with identifier Xcode.IDEFoundation.IDEResultKitSerializationConverter\nRun Code Online (Sandbox Code Playgroud)\n其次是:
\nError: Error Domain=XCCovErrorDomain Code=0 "Failed to load coverage archive in scheme action \'Testing project App with scheme App\' in result bundle" UserInfo={NSLocalizedDescription=Failed to load coverage archive in scheme action \'Testing project Handshake with scheme App\' in result bundle, NSUnderlyingError=0x600001c70870 {Error Domain=NSCocoaErrorDomain Code=260 "The file \xe2\x80\x9cMetadata.plist\xe2\x80\x9d couldn\xe2\x80\x99t be opened because there is no such file." UserInfo={NSFilePath=/tmp/action.xccovarchive/Metadata.plist, NSUnderlyingError=0x600001c707b0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}}}\nRun Code Online (Sandbox Code Playgroud)\n我已经到处寻找解决方案,但似乎无法确定问题是什么。我尝试了此处的解决方案来报告所有目标的覆盖范围,但没有运气。
\n这种情况在Xcode 14.3和Xcode 15中都会发生。我的项目也在使用测试计划。有没有人遇到过这个并知道问题可能是什么?
\n