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

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/24011986/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 04:58:41  来源:igfitidea点击:

Unable to determine simulator device to boot. - Xcode

iosxcodeios8xcode6

提问by footyapps27

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.

提前致谢。

回答by MarekR

Make sure you have only one iOS Simulator instance running in the Dock.

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

回答by thegreenpizza

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).
  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).
  1. 通过Xcode打开模拟器 -> Open Developer Tool -> iOS模拟器(即使无法启动,app也会打开)。
  2. 打开模拟器应用程序,转到硬件 -> 设备 -> 管理设备。
  3. 使用加号按钮添加任何缺少的模拟器(由于某种原因,我的所有模拟器都丢失了)。

回答by Mani

I've faced same issue and solved by below steps:

我遇到了同样的问题并通过以下步骤解决:

1) Movexcode6-beta into application folder

1) Movexcode6-beta 进入应用程序文件夹

2) Restartmac and open xcode6-beta from application folder.

2) Restartmac 并从应用程序文件夹中打开 xcode6-beta。

回答by swimming

You will not see the profiles of simulator without a rebooting of OS X.I added simulator for many times,when the rebooting finished, it shows on the device list under the simulator bar. I think this is a bug of Xcode 6 Beta

多次重新启动OS XI添加的模拟器,您将看不到模拟器的配置文件,重新启动完成后,它会显示在模拟器栏下的设备列表中。我认为这是 Xcode 6 Beta 的一个错误

回答by Ashu

I think you have 2 simulator running in the dock. Please close another one simulator and run the project again. It might helpful for you.

我想你有 2 个模拟器在码头上运行。请关闭另一个模拟器并再次运行该项目。它可能对你有帮助。

回答by user3397022

I had the same problem when running from Xcode 6 beta selecting iPhone 5s. If I choose iPhone 5 or "resizable iPhone" then my app launches fine.

从 Xcode 6 beta 选择 iPhone 5s 运行时,我遇到了同样的问题。如果我选择 iPhone 5 或“可调整大小的 iPhone”,那么我的应用程序可以正常启动。

回答by Andriy Kashchynets

In my case I had such a message just because the simulated device was still booting (longer than usually, I guess). 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)

在我的情况下,我收到这样的消息只是因为模拟设备仍在启动(我猜比平时更长)。Xcode 7.2。(这实际上不是这个特定问题的答案,但我来到这里是通过谷歌搜索标题中的消息,所以我在这里写下我的笔记,以防其他人遇到和我一样的情况)

回答by Honey

My case wasn't about having two simulators open. It was just because having instruments open as well. Closing Instruments resolved the issue

我的情况不是打开两个模拟器。只是因为仪器也打开了。关闭工具解决了这个问题

回答by bensj

I just fixed the exact same problem by removing the beta version and rebooting the computer.

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