Xcode真机测试could not find developer disk image解决方法

Xcode真机测试could not find developer disk image解决方法

在使用Xcode进行真机调试的时候,有时根据真机的系统不同,会出现could not find developer disk image 错误,这是由于真机系统过高或者过低,Xcode中没有匹配的配置包文件,我们可以通过这个路径进入配置包的存放目录:


Xcode真机测试could not find developer disk image解决方法_第1张图片
iOS-S�DK存放路径.jpg
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

里面有类似这样的一些文件夹,如果这些文件夹中没有包含我们真机的系统,则不能进行真机测试。但是我们可以通过将相应的配置包添加入这个文件夹来解决问题:

Xcode真机测试could not find developer disk image解决方法_第2张图片
屏幕快照 2016-10-12 下午4.14.44.png

缺哪种真机iOS系统的镜像就上网下载相对应的,在把包拷贝进去就可以了。

下载的模拟器存放路径:/Library/Developer/CoreSimulator/Profiles/Runtimes

模拟器SDK存放路径
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs

你可能感兴趣的:(Xcode真机测试could not find developer disk image解决方法)