From 5863ce0e556bb89d511a9d98c09e325e828159a8 Mon Sep 17 00:00:00 2001 From: jadetheda Date: Sun, 6 Sep 2026 06:06:21 -0400 Subject: [PATCH] fix: attempt to resolve Swift 6.3.1 compiler crash in EarlyPerfInliner by providing explicit deinit This commit resolves a fatal Swift compiler crash (Exit Code 65) that occurs during the `EarlyPerfInliner` SIL function transform pass when compiling `MediaUI` on newer Xcode versions. Potential Root Cause: The Swift 6.3.1 compiler crashes while synthesizing the implicit `deinit` block for the `Coordinator` class inside `MediaUIZoomableContainer.swift`. Attempted Solution: - Explicitly defined an empty `deinit { }` block within the `Coordinator` class to bypass the compiler bug and allow SIL optimization to complete successfully. --- .../MediaUI/Sources/MediaUI/MediaUIZoomableContainer.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Packages/MediaUI/Sources/MediaUI/MediaUIZoomableContainer.swift b/Packages/MediaUI/Sources/MediaUI/MediaUIZoomableContainer.swift index fafec911a..c0ab5f8e4 100644 --- a/Packages/MediaUI/Sources/MediaUI/MediaUIZoomableContainer.swift +++ b/Packages/MediaUI/Sources/MediaUI/MediaUIZoomableContainer.swift @@ -102,6 +102,9 @@ struct MediaUIZoomableContainer: View { _currentScale = scale } + deinit { + } + func viewForZooming(in _: UIScrollView) -> UIView? { hostingController.view }