Skip to content

Fix fatal Swift 6.3.1 compiler crash in MediaUIZoomableContainer - #2497

Open
jadetheda wants to merge 1 commit into
Dimillian:mainfrom
jadetheda:fix-compiler-crash
Open

Fix fatal Swift 6.3.1 compiler crash in MediaUIZoomableContainer#2497
jadetheda wants to merge 1 commit into
Dimillian:mainfrom
jadetheda:fix-compiler-crash

Conversation

@jadetheda

Copy link
Copy Markdown
Contributor

This fixes a fatal Swift compiler crash (Exit Code 65) that occurs when compiling the MediaUI package on newer Xcode versions.

The Swift 6.3.1 compiler was completely segfaulting during its SIL optimization pass because it was failing to properly synthesize the implicit deinit block for the Coordinator class.

Explicitly adding an empty deinit { } block cleanly bypasses the compiler bug and allowed the project to build successfully.

…r 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant