I posted an issue to the Swift repo. Please see below. I would open another issue based on the comments regarding Notification.Name with c++ interop. I've seen new issues as well.
I've run into the NSNotification issue on a large Xcode project. I tried to reproduce it on a small sample project but could not. Both projects use the same minimum iOS version 16.0 and are running from the same Xcode version.
Does anyone have any details on specific conditions when this issues occurs? Or maybe a small sample app that reproduces the issue? I'm hoping I can work around this issue before Swift 6.0.