Appium Inspector kills automation after attach

I’m trying to use Appium Inspector but whenever I click on attach to session the automations on my phone gets instantly terminated and I’m not sure what is the cause of that.
I’m on a Mac v12.6.5, running a test on a real device (iPhone 12 mini v16.0.2), Appium 1.22.0 and Appium Inspector 2023.5.2
Thanks in advance.

This combination will not work. Best to try this with Appium 2 for your combination of iOS and Xcode: