iOS 11升级后无法真机测试 Coulsdkd not locate device support files.(Could not find Developer Disk Image)

昨天晚上 WWDC 更新了很多新技术和软件版本,我也抢先体验了一把 iOS 11 ,但是升级 iOS 11 之后有个问题,要想在 Xcode 上进行真机调试必须要升级到 Xcode 9 以上,否则就会报如下错误:

Could not locate device support files.

This iPhone 7 Plus (Model 1661, 1784, 1785, 1786) is running iOS 11.0 (15A5278f), which may not be supported by this version of Xcode.

iOS 11升级后无法真机测试 Coulsdkd not locate device support files.(Could not find Developer Disk Image)_第1张图片
Could not find Developer Disk Image

原因是 Xcode 的 DeviceSupport 里面缺少了 iOS 11 的 Disk Image 。

既然缺少 iOS 11 的 SDK ,那第一种方法是升级 Xcode 到 9.0 版本,自然就会带有 iOS 11 的 Disk Image,上面已经提到过。我不想升级 Xcode 版本,但又想在 9.0 本以下版本的Xcode 中进行真机调试,那有什么办法呢?办法还真有,请看下面第二种方法:

下面来说第二种方法:

1、找你同事 copy 一份 iOS 11 的 Disk Image ,如果你同事没有,我已经帮你准备好 iOS 11 的 Disk Image ,点击下载即可。

2、前往文件夹(快捷键 Shift+Command+G)

/应用程序/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

iOS 11升级后无法真机测试 Coulsdkd not locate device support files.(Could not find Developer Disk Image)_第2张图片
前往文件夹

3、把刚才下载的 Disk Image 解压后拖到文件目录下之后重启 Xcode 即可。

iOS 11升级后无法真机测试 Coulsdkd not locate device support files.(Could not find Developer Disk Image)_第3张图片

操作完以上步骤,你就可以正常的进行真机调试了。

你可能感兴趣的:(iOS 11升级后无法真机测试 Coulsdkd not locate device support files.(Could not find Developer Disk Image))