错误提示:iPhone xxx is not available because it is unpaired. Pair with the device in the Xcode Devices Window, and respond to any pairing prompts on the device.
处理方法:把Xcode关闭,手机断开数据线,打开终端,输入以下指令:
sudo pkill usbmuxd
需要输入开机密码。
完成之后,重新打开Xcode,连接手机,重新运行,需要在手机上信任电脑。