Crash when compiling code using 6.0, can related to retroactive #76530
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
crash
Bug: A crash, i.e., an abnormal termination of software
triage needed
This issue needs more specific labels
Description
I am getting crash on Swift 6.0 where all works fine on 5.9, can be related to retroactive implementation. Seems for UNUserNotificationService code stopped on
dispatch_assert_queue
which can be Foundation issue with Swift 6.0 but other stack dump might be related to retroactive (see additional information).Reproduction
Inside
@main
AppDelegate i haveapplicationDidBecomeActive
which call this method which causes a crash on swift 6.0 but not cause when i have swift 5.9:Worth mention that i include SPM packages
Models
which contains this code:When i changed method
registerForRemoteNotificationsIfAuthorized
to this implementation it works fine:Personally feel this can something related to
@retroactive
, because i tried to migrate other module and seeing crash on classes where@retroactive
implemented too.Stack dump
Expected behavior
Should not crash
Environment
Swift 6.0 (6.0.0.9.10) - Xcode 16 Release
Additional information
Other place stack dump that i am getting some crash and custom actors are implemented is:
Inside initializer i have:
The text was updated successfully, but these errors were encountered: