使用xcode 15.2连接iphone 15 pro进行调试程序时,出现iPhone 15 is not availablebecause it is unpaired,Pair with the device in the XcodeDevices Window, and respond to anypairing prompts on the device.

iphone 15 pro出现的问题
1:退出XCode,断开设备连接
2 :在终端执行
sudo pkill usbmuxd 3 :重新打开xcode连接手机问题解决