I am trying to run my React Native IOS app on my iPhone XS device. iPhone connects to my M1 MacBook pro and I can access the phone but when I try to run the app Xcode complains that the device's developer mode is not enabled. But when I enable the Developer Mode the iPhone doesn't connect to the mac, it appears in the sidebar for a few seconds and then disappears.
Can anyone point out what the issue is? How can I connect the developer-mode enabled iPhone to my M1 Mackbook (Ventura macOS 13.1)?