Hello Quinn,
I do not yet test Xcode 27, I' m still using Xcode Version 26.5 (17F42).
Regarding the sysdiagnoses, the one made on Vision Pro was exactly the issue described with EXC_BAD_ACCESS.
But as I said, without Xcode, launching directly on the devices works fine (I didn't notice at first). And now I have the crash you describe (instead of EXC_BAD_ACCESS) on iPhone and iPad with the 27 beta with the app launched from Xcode.
Searching for the new error message, I found a web page describing "Fixing OS_dispatch_mach_msg _setContext: unrecognized selector on iOS 27 by Mick MacCallum" wich is the new error I see.
He says
In Xcode, open Product > Scheme > Edit Scheme.
Select the Run action in the sidebar, then open the Options tab.
Find Queue Debugging and uncheck Enable backtrace recording.
This is what I did and now the project UserDefaults27 runs fine from Xcode.
To recap, this is not an error with UserDefaults on the 27 OSes.
The error is in fact that running apps from Xcode Version 26.5 (17F42) crashes the app on iOS, iPadOS and visionOS 27 including Beta 2 (and perhaps other 27 OSes).
This could be very useful to know for other readers of this forum, as many could have the same issue.
Please, tell me what you want me to do with the feedback. Should I open a new one on Xcode, can you change its category. Please let me know.
Thank you very much.