1. 复制一份旧的SDK,并重新命名为真机测试需要的SDK版本
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer
2. 进入刚刚复制的sdk文件夹下,把里面所有跟版本相关的改成当前版本
3.去这里下载对应的真机调试包,然后复制到下面路径里
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
4. 再次运行可能会报错“Errors were encountered while preparing your device for development. Please check the Devices and Simulators Window”。
5. 但是现在还是没办法解决,一调试就断开连接,擦