After updating to Xcode 15 Beta 2, my app stopped building due to complaints that the extensions I defined on MKCoordinateRegion don't exist when used in the Preview. Interestingly, there are no exceptions when these extensions are used elsewhere in the app.
Here's a small code example that I created:
Notice that the exception is only thrown in the preview and not in the body of the struct. This behavior was working as expected in Xcode 15 Beta 1.
Furthermore, this issue arises only when the target is an iPhone or iPad. If I switch the target to Vision Pro, the app builds successfully.