I'm experiencing the same issue, and it seems to be related to Xcode 16.3. A few workarounds that have helped are:
Running the app on a physical device
Downgrading Xcode from 16.3 to 16.2
Downgrading the simulator device from iOS 18.4 to 18.3.1
Here is a relevant post covering the same issue:
https://x.com/twostraws/status/1906976838670258594
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: