Catch2 icon indicating copy to clipboard operation
Catch2 copied to clipboard

catch_discover_tests causes XCode build to fail spuriously

Open benthevining opened this issue 2 years ago • 1 comments

Describe the bug When building with XCode on MacOS, the build will occasionally fail spuriously when running the script added by catch_discover_tests (the error in XCode is "PhaseScriptExecution failed"), but will then succeed when re-running the build.

Expected behavior The build should succeed without needing to be re-run.

Reproduction steps This issue is present in my Limes library, which can be built with:

cmake --preset xcode
cmake --build --preset xcode

I can try to create a minimal repro if needed.

Platform information:

  • OS: MacOS
  • Compiler+version: AppleClang
  • Catch version: Latest (tip of devel)
  • CMake generator: Xcode

benthevining avatar Dec 16 '22 07:12 benthevining

Has anyone else run in to this? I've hit this issue now in multiple projects using catch_discover_tests with the XCode generator.

benthevining avatar Apr 10 '23 13:04 benthevining