After updating macOS (macbook M2 Max) to Version 15.0 Beta (24A5298h) and running Xcode version 16.0 beta 4 (16A5211f), I am no longer able to debug apps on phones due to that I can not load them to the phone (even with cable connection). I had no issues in the past with these phones. The error message in Xcode is "Previous preparation error: Developer Mode disabled; To use iPhone for development, enable Developer Mode in Settings → Privacy & Security."
But the phones are in Developer mode. Updating phones to a later iOS version does not help. Also, going back in Xcode does not help, as with macOS 15.0 Beta you need to have Xcode 16.0
Trying other phones that worked in the past does not help. Reinstalling Xcode does not help either. I see the phones in Finder, so there is a connection. Enabling/Disabling the Developer mode switch on the phone does not help either. Rebooting devices neither. Tried everything available on the internet, but no results.
Need to test on phones, as I am using AR, which doesn't to run with the simulator.