iOS Keeps Observing a Dead Kotlin Flow — the CommonFlow Leak Hiding in Your KMP Bridge
A DEV Community article titled "iOS Keeps Observing a Dead Kotlin Flow — the CommonFlow Leak Hiding in Your KMP Bridge" describes a memory leak that appears on the iOS side of a Kotlin Multiplatform bridge. According to the source, iOS continues observing a Kotlin Flow after that flow is dead, and the leak is attributed to the CommonFlow wrapper that sits in the KMP bridge layer. The framing places the problem in the bridge rather than in the shared Kotlin flow logic itself. The provided source text consists largely of page styling and theme CSS for the DEV Community article page, including rules for the article's challenge tag, light and dark theme treatments, and layout adjustments. It does not include the article body's technical explanation, code samples, reproduction steps, or any version numbers, library releases, or measured leak sizes. As a result, the only substantive claims available are the ones stated in the title and the accompanying description: that iOS keeps observing a dead Kotlin Flow and that a CommonFlow leak is hiding in the KMP bridge. No remediation steps, affected library versions, or platform-specific conditions beyond iOS are stated in the supplied text.
The source indicates iOS can keep observing a Kotlin Flow after it is dead, pointing developers to the CommonFlow bridge layer as the leak's location.