Xcode 真机调试 遇到 Errors were encountered thile preparing your device for development. Please check the Devices and Simulators Window 问题。

https://img.wangquanwei.com/wp-content/uploads/2021/06/0A1F1D5787C456CA91DF0A7E5622DD66.png

解决方法

1、点击菜单栏 Window
2、打开 Devices and Simulators
https://img.wangquanwei.com/wp-content/uploads/2021/06/80024468CC01F05795FE1919AC193249.jpg
3、右键设备(我这里是小米手机)
4、在弹出菜单选择 Unpair Device(这里我Xcode直接奔溃了)
https://img.wangquanwei.com/wp-content/uploads/2021/06/A6156598-7C2A-49FC-8B56-DB529CD74731.jpeg
5、手机上会弹出信任弹窗,重新信任下就可以了