Point the snapshot tests at the Debug host app
XcodeGen derives TEST_HOST from the target name (Klepon.app), but the Debug configuration names the product "Klepon Debug". xcodebuild then stops with "Could not find test host for KleponSnapshotTests". Set TEST_HOST for the Debug test configuration to the real bundle path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Seto Elkahfi committed
Oct 4, 2026 at 23:33 UTC
f957fe641ac40d4c33f00f2bdf005cf74ee50fee
1 file changed
+3
project.yml
+3
@@ -223,6 +223,9 @@ targets:
223
configs:
224
Debug:
225
SWIFT_OPTIMIZATION_LEVEL: -Onone
226
+ # The Debug host app is named "Klepon Debug", not the target name
227
+ # XcodeGen assumes when it derives TEST_HOST.
228
+ TEST_HOST: "$(BUILT_PRODUCTS_DIR)/Klepon Debug.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Klepon Debug"
229
Release:
230
SWIFT_OPTIMIZATION_LEVEL: -O
231