简体   繁体   English

无法确定要启动的模拟器设备。 - Xcode

[英]Unable to determine simulator device to boot. - Xcode

I just downloaded Xcode 6 & played with it a bit. 我刚刚下载了Xcode 6并且玩了一下。

After switching back to previous version of Xcode and running in simulator, I keep getting this error. 切换回以前版本的Xcode并在模拟器中运行后,我不断收到此错误。

Unable to determine simulator device to boot. 无法确定要启动的模拟器设备。

How do we resolve this? 我们如何解决这个问题?

Thanks in advance. 提前致谢。

确保Dock中只运行一个iOS模拟器实例。

There was a simple answer to this for me: 对我来说有一个简单的答案:

  1. Open the simulator via Xcode -> Open Developer Tool -> iOS simulator (even if it can't launch, the app will be open). 通过Xcode - > Open Developer Tool - > iOS模拟器打开模拟器(即使它无法启动,应用程序也会打开)。
  2. With the simulator app open, go to Hardware -> Device -> Manage Devices. 打开模拟器应用程序,转到硬件 - >设备 - >管理设备。
  3. Add any missing simulators with the plus button (all of mine were missing for some reason). 使用加号按钮添加任何缺少的模拟器(因为某些原因,我的所有模拟器都丢失了)。

I've faced same issue and solved by below steps: 我遇到了同样的问题,并通过以下步骤解决:

1) Move xcode6-beta into application folder 1) Move xcode6-beta Move到应用程序文件夹中

2) Restart mac and open xcode6-beta from application folder. 2) Restart mac并从应用程序文件夹中打开xcode6-beta。

I had the same problem when running from Xcode 6 beta selecting iPhone 5s. 从Xcode 6 beta选择iPhone 5s运行时遇到了同样的问题。 If I choose iPhone 5 or "resizable iPhone" then my app launches fine. 如果我选择iPhone 5或“可调整大小的iPhone”,那么我的应用程序启动正常。

You will not see the profiles of simulator without a rebooting of OS XI added simulator for many times,when the rebooting finished, it shows on the device list under the simulator bar. 如果没有重新启动OS XI添加模拟器多次,您将看不到模拟器的配置文件,当重新启动完成时,它显示在模拟器栏下的设备列表中。 I think this is a bug of Xcode 6 Beta 我认为这是Xcode 6 Beta的一个错误

I think you have 2 simulator running in the dock. 我想你在码头上运行了2个模拟器。 Please close another one simulator and run the project again. 请关闭另一个模拟器并再次运行该项目。 It might helpful for you. 它可能对你有所帮助。

In my case I had such a message just because the simulated device was still booting (longer than usually, I guess). 在我的情况下,我有这样的消息只是因为模拟设备仍在启动(我想比通常更长)。 Xcode 7.2. Xcode 7.2。 (This is not actually an answer to this specific question, but I came here googling the message in the title, so I am writing my note here for if someone else gets the same case as I did) (这实际上并不是这个具体问题的答案,但我来到这里谷歌搜索标题中的信息,所以我在这里写我的笔记,如果其他人得到了与我相同的情况)

My case wasn't about having two simulators open. 我的情况不是要打开两个模拟器。 It was just because having instruments open as well. 这只是因为打开乐器。 Closing Instruments resolved the issue 关闭工具解决了这个问题

我只是通过删除测试版并重新启动计算机来解决完全相同的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM