无法启动iphone模拟器;“没反应”。Xcode 7,模拟器版本 9(适用于 iOS 9)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/32766955/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Can't start iphone simulator; "not responding". Xcode 7, simulator version 9 (for iOS 9)
提问by Mats
Ever since i updated to the GM version of encode 7 I've been unable to use the simulator. I used to get an error, but when I updated to the official release (through app store) that stopped. Now it says "running [name of app] on iPhone [model]". When I look in the force quit menu it says not responding
自从我更新到编码 7 的 GM 版本以来,我一直无法使用模拟器。我曾经遇到过错误,但是当我更新到停止的正式版本(通过应用程序商店)时。现在它说“在 iPhone [型号] 上运行 [应用程序名称]”。当我查看强制退出菜单时,它说没有响应
When I press "stop" it continues to show the same message. When closed and reopened it says "Build succeeded at... etc.", so I'm quite certain that the problem lies in the simulator and not the copy of xcode.
当我按“停止”时,它继续显示相同的消息。当关闭并重新打开时,它说“构建成功......等”,所以我很确定问题出在模拟器而不是 xcode 的副本。
I've tried projects that worked before, including one that I downloaded from the apple guide (I figured that would have to work if there was some problem with the code in my other projects).
我已经尝试过以前有效的项目,包括我从苹果指南下载的项目(我认为如果我的其他项目中的代码存在一些问题,那将不得不工作)。
回答by Rahul Patel
I have same problem, i just quit all application, and shutdown Mac, and restart it.
我有同样的问题,我只是退出所有应用程序,然后关闭 Mac,然后重新启动它。
And I have my iPhone simulator working fine.
我的 iPhone 模拟器工作正常。
This problem occurs because of unexpected power off of Mac.
出现此问题是由于 Mac 意外断电。
回答by PhilBlais
I had a similar problem.
我有一个类似的问题。
Did you try to go to Window -> Devices , then once that window is opened at the bottom left click on the + and add a device?
您是否尝试转到 Window -> Devices ,然后在左下角打开该窗口后单击 + 并添加设备?
回答by Michael Potter
It took me an embarrassingly long time to figure out what I was doing wrong...
我花了很长时间才弄明白我做错了什么......
I had selected the wrong project to build. That is: the selector to the left of the device selector was set to a Library that my project was using rather then the main project.
我选择了错误的项目来构建。也就是说:设备选择器左侧的选择器设置为我的项目正在使用的库,而不是主项目。
After selecting my main project my simulator started to start in the normal fashion.
选择我的主项目后,我的模拟器开始以正常方式启动。