I am also experiencing the same issue.
Had a feeling that it was related to XCode 13.4.1, but after testing with previous versions the issue still persists.
It does, however, not seem to happen for archived builds, but only when running directly from Xcode.