Dev Tools · 1h ago
iOS 17 Bug: @Dependency Crashes in withTaskGroup
A crash in iOS 17 occurs when reading a @Dependency property inside withTaskGroup or withThrowingTaskGroup, triggering a fatal task-local binding error. The same code works on iOS 18, making it easy to miss during development. The fix is to resolve all @Dependency values before entering the task group.
Meridian48 take
This is a niche but critical bug for iOS developers using swift-dependencies, highlighting how Swift concurrency changes between OS versions can silently break production apps.
Read the full reporting
The Silent iOS 17 Crash Hiding in `@Dependency` and `withTaskGroup` →
DEV Community
swiftios-development