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. 但是现在还是没办法解决,一调试就断开连接,擦

本文详细指导如何在Xcode 12.3中复制旧SDK重命名并调整版本,下载真机调试包,以及处理常见错误‘设备开发准备失败’,解决设备连接断开问题。
2570

被折叠的 条评论
为什么被折叠?



