I had this issue that started after updating XCode to v16. I updated everything under the sun to the latest versions - XCode, the iPhone itself, Appium, Appium Inspector, and XCUITest Driver. Still got this error. Finally, I went into the Developer Settings on the iPhone and tapped "Clear Trusted Computers", and then re-trusted the computer when it prompted. Ta-da, Appium Inspector suddenly worked again!