无效的设备状态 - Xcode/iOS 模拟器错误 [英] Invalid Device State - Xcode/iOS Simulator error

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

问题描述

问题:我无法模拟 Apple Watch 界面.每当我尝试在 iPhone 6 模拟器上测试我的 Apple Watch 应用程序时,Xcode 都会成功完成并构建应用程序,尝试打开模拟器并失败,并显示一条错误消息,显示设备状态无效".

Problem: I cannot simulate an Apple watch interface. Whenever I try and test my Apple watch app on the iPhone 6 simulator, Xcode successfully finishes and builds the app, attempts at opening simulator and fails with an error message which reads 'Invalid Device State'.

我相信模拟器有一个手表模拟器,可以与兼容的 iPhone 模拟器模型一起打开,可以与 Apple Watch 通信(例如:iPhone 6),尽管我还没有看到它工作.我已经为 iPad 和 iPhone 构建了一个通用界面,并为手表构建了另一个界面,所以这不是应用程序用于错误设备的问题.每当我在我的实际 iPhone 上进行测试时,我都可以成功地测试通用接口.

I believe simulator has a watch simulator that opens along with the compatible iPhone simulator models that can communicate with Apple watch (example: iPhone 6) Although I have yet to see it work. I have built a universal interface for iPad and iPhone and another for the watch, so it's not a matter of the app being for the wrong device. Whenever I test on my actual iPhone I can test the universal interface successfully.

我在 iMac OS X 10.10.3 上使用 Xcode 6.2

I'm using Xcode 6.2 on iMac OS X 10.10.3

我尝试重新启动 Xcode/计算机.我似乎在任何地方都找不到关于无效设备状态"的任何其他提及,希望是因为这是我忽略的避免/修复的明显事情.任何帮助将不胜感激.

I have tried restarting Xcode/Computer. I can't seem to find any other mention of 'Invalid Device State' anywhere, hopefully due to it being an obvious thing to avoid/fix that I've overlooked. Any help would be appreciated.

推荐答案

强制退出 xCode 并重新启动将解决问题.

Force Quit xCode and restart will resolve problem.

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

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