请查看这个代码库 https://github.com/iGhibli/iOS-DeviceSupport 下载这个文件夹: 将它移动到: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport 关闭并重新打开Xcode。 编译和运行
右键点击/Applications/Xcode,选择显示包内容 通过复制并粘贴 14.5 目录到同一个目录(DeviceSupport),然后将该目录重命名为 14.6 来创建副本 现在退出 Xcode 并再次尝试。 这样肯定可以100%解决问题。