Catch2
Catch2 copied to clipboard
catch_discover_tests causes XCode build to fail spuriously
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
Has anyone else run in to this? I've hit this issue now in multiple projects using catch_discover_tests
with the XCode generator.