Xcode 15.4
iOS 17.6.1
Here’s what worked for me:
Remove the DerivedData folder.
In Xcode, go to Product > Clean Build Folder.
Delete the app from your device.
Restart both your device and Xcode.
Enable "Automatically manage signing" and select the correct team.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: