Xcode 8.0模拟器损坏 [英] Xcode 8.0 Simulator broken

查看:82
本文介绍了Xcode 8.0模拟器损坏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Xcode安装出现了问题...我正在运行我的应用程序,看到该应用程序本身存在异常行为,对于初学者来说,我无法在模拟器中运行该版本.发射,最终建立一个对话框,说明无法祝福与模拟器的连接.我几天前就遇到了这个问题,但最终消失了,谷歌搜索发现人们对beta版本或beta MacOSX存有疑问.

Something has gone wrong with my Xcode install... I was running my app and seeing odd behaviour within the app itself, for starters I wasn't able to run the build in the simulator.. it'd install and never launch, eventually putting up a dialogue box about being unable to bless the connection to the simulator. I'd had this problem a few days before but it eventually went away, googling just revealed people having issues with the beta builds or beta MacOSX.

最终,今天我重新启动了Mac,然后启动了Xcode,这给我带来了关于模拟器的其他错误,但我没有适当注意.从那时起,我的项目不再列出要部署的任何模拟器,如果我尝试添加新的模拟器,则添加模拟器的按钮将不起作用,并且我必须取消对话框.如果我尝试运行模拟器或直接观看模拟器,那么它将无限期地搁浅,并且我不得不强行杀死它.

Eventually today I rebooted my Mac and having done so, launching Xcode gave me some other error about the simulator, which I didn't properly take notice of. Since then my project no longer lists any simulators to deploy with, if i try to add new simulators the button to add the simulator does nothing and I have to cancel the dialogue box. If I try and run the simulator or watch simulator directly it just beach balls indefinitely and i have to force kill it.

我创建了一个新的用户帐户,并在其中创建了一个新的Xcode项目,该项目也没有模拟器.

I've created a new user account and within that made a new Xcode project, which also has no simulators.

在出现此问题之前,我已经获得了我的Xcode的压缩备份,我已经将其提取并交换就位了,这没有关系.

I've got a zipped backup of my Xcode from before this problem occurred which I've extracted and swapped in place and it makes no difference.

我想我可以从AppStore重新下载该应用程序,希望安装程序可以解决该问题.

I guess I could do with redownloading the app off the AppStore in hope that the installer would do something to fix this problem.

有人对我可以尝试的其他事情有任何想法吗?!

Anyone got any thoughts on other things I can try?!

欢呼

推荐答案

最有可能的情况是您的XCode安装已损坏.最好的办法是完全删除Xcode以及以下目录和文件:

What is most likely to be the case is that your XCode installation is corrupt. The best thing to do is to delete Xcode entirely and also these directories and files:

  • 〜/Library/Caches/com.apple.dt.*
  • 〜/Library/Caches/xctest
  • 〜/Library/Containers/com.apple.dt.*
  • 〜/Library/Developer
  • 〜/Library/MobileDevice
  • 〜/Library/Preferences/com.apple.dt.*
  • 〜/Library/SavedState/com.apple.dt.*

然后重新启动系统并重新安装Xcode.希望那应该已经解决了这个问题.

Then reboot your system and reinstall Xcode. Hopefully that should have cleared out the issue.

这篇关于Xcode 8.0模拟器损坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆