From 1c5d2cd5f733f24125da2147ebab90db6b28fbc0 Mon Sep 17 00:00:00 2001 From: Anna Garcia Date: Tue, 27 Oct 2026 11:51:58 -0400 Subject: [PATCH] test(replay): gate the flattened-content mask tests on the SessionReplay trait The suite uses replay-only test helpers, so the no-traits iOS test build failed. Co-Authored-By: Claude Opus 5.5 --- PostHogTests/PostHogMaskFlattenedContentTest.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PostHogTests/PostHogMaskFlattenedContentTest.swift b/PostHogTests/PostHogMaskFlattenedContentTest.swift index d5339c0ae..56aed5e73 100644 --- a/PostHogTests/PostHogMaskFlattenedContentTest.swift +++ b/PostHogTests/PostHogMaskFlattenedContentTest.swift @@ -7,7 +7,7 @@ // per-Text masking heuristics can't see the text inside. These tests host real SwiftUI and // check the collected mask rects geometrically. -#if os(iOS) && canImport(SwiftUI) +#if os(iOS) && canImport(SwiftUI) && (!SWIFT_PACKAGE || SessionReplay) import Foundation @testable import PostHog import SwiftUI