iOS模拟器:无效的设备状态 [英] iOS Simulator: Invalid device state

查看:74
本文介绍了iOS模拟器:无效的设备状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚从App Store下载了Xcode 6.4,并开始创建一个hello world应用程序以学习Swift,但是我收到错误消息"Invalid Device State".

I just downloaded Xcode 6.4 from App Store and started to create a hello world app to learn swift but I get the error saying "Invalid Device State".

我在Google上搜索了很多,并尝试了以下操作:

I googled a lot and tried the below things:

  1. 重新启动Mac并输入xcode并启动项目(如堆栈溢出线程中所述)
  2. 我使用其他布局创建了一个新的iOS应用,但是如果我运行该项目,则会再次显示相同的错误.
  3. 我删除了所有项目,然后再次重新安装了Xcode.开始一个新项目并运行它,但仍然出现相同的错误.

我正在运行Yosemite 10.10.1,并且Xcode版本是6.4.

I am running Yosemite 10.10.1 and the Xcode version is 6.4.

有人可以帮助我吗?

推荐答案

如果在旧版本的Xcode中发生错误,设备可能会陷入创建状态.该问题在Xcode 7中已得到修复,但我不确定该修复程序是否已将其还原回Xcode 6.x版本中.

Devices can get stuck in the creating state if errors occur in older versions of Xcode. This was fixed at some point in Xcode 7, but I'm not sure if the fix made it back into an Xcode 6.x release.

在Terminal.app中,请运行"xcrun simctl list".找到您要引导的设备的UDID.如果卡在正在创建"状态,则可以尝试通过运行"xcrun simctl擦除"来重新创建它.

From Terminal.app, please run 'xcrun simctl list'. Locate the UDID of the device that you are attempting to boot. If it is stuck in the 'Creating' state, you can try recreating it by running 'xcrun simctl erase '.

如果卡在其他状态,请适当更新您的问题,以指示设备卡在哪个状态.

If it is stuck in a different state, please update your question appropriately to indicate which state the device is stuck in.

另一方面,建议您更新操作系统.自从10.1.0.1起,已经进行了许多质量修复.刚出来的是10.10.5.

On a side note, I suggest you update your OS. There have been a lot of quality fixes since 10.10.1. 10.10.5 just came out.

这篇关于iOS模拟器:无效的设备状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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