I had the same issue, and I found a solution that helped me.
https://stackoverflow.com/a/77189267/4109062
TL;DR
It helped me to download appropriate version of DeviceSupport from https://github.com/JinjunHan/iOSDeviceSupport.
And place it inside my Xcode package contents open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport