昨天一不小心更新了手机系统为12.01,然后运行程序时便悲剧了。报错如下:could not locate deviece support files.
解决方法如下:
1、关闭xcode,到这里(https://github.com/chenhuaizhe/src)下载一份匹配你手机设备的XCode 的配置文件包,拷贝到你的xcode目录下( 应用程序-->xcode-->右键显示包内容-->contents-->Developer-->Platforms-->iPhoneOS.platform-->DeviceSupport )
2、将 应用程序-->xcode-->右键显示包内容-->contents-->Developer-->Platforms-->iPhoneOS.platform-->Developer-->SDKs-->iPhoneOS.sdk下的SDKSetting.plist文件拷贝出来,然后修改文件中的版本号为刚刚下载的配置文件的版本号,此处我的是将11.3修改成了12.0。
如果不修改此处的版本号,则运行时仍会报错,报错信息如下:XXXIPhone is busy:Preparing debugger support for xxx iPhone.