简体   繁体   English

Xcode丢失了与iPhone的连接

[英]Xcode Lost connection to iPhone

When running my app on device and than testing offline mode by clicking flight mode on device itself, after 3 seconds i'm getting this message: 在设备上运行我的应用程序而不是通过单击设备本身上的飞行模式测试离线模式,3秒后我收到此消息:

Restore the connection to "iPhone 6" and run "APP_NAME" again, or if "APP_NAME" is still running, you can attach to it by selecting Debug > Attach to Process > APP_NAME. 恢复与“iPhone 6”的连接并再次运行“APP_NAME”,或者如果“APP_NAME”仍在运行,您可以通过选择“调试”>“附加到进程”>“APP_NAME”来附加该连接。

  • iPhone version 9.2.1 iPhone 9.2.1版
  • Xcode version 7.2.1 Xcode版本7.2.1

Does anyone have a clue? 有人有线索吗?

Ok, i found workaround. 好的,我找到了解决方法。 Just turn off the Personal Hotspot in Settings. 只需关闭“设置”中的“个人热点”即可。 For me it worked. 对我来说它有效。 <3 Apple... <3 Apple ...

I am experiencing the same problem. 我遇到了同样的问题。 A little showstopper when trying to check the offline behavior of your App (eg Reachability, custom error messages etc). 尝试检查应用程序的脱机行为时的一点点showstopper(例如可达性,自定义错误消息等)。

This is a known Bug with Xcode 7 and iOS 9, already reported with Apple some month ago: http://www.openradar.appspot.com/23021571 这是一个已知的 Xcode 7和iOS 9的Bug ,已经在几个月前向Apple报道: http//www.openradar.appspot.com/23021571

You were likely unable to find it because it's not called "flight mode" but "airplane mode" officially. 您可能无法找到它,因为它不是正式称为“飞行模式”而是“飞行模式”。

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

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