Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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:

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 version 9.2.1
  • Xcode version 7.2.1

Does anyone have a clue?

like image 701
ytpm Avatar asked Feb 21 '16 11:02

ytpm


2 Answers

Ok, i found workaround. Just turn off the Personal Hotspot in Settings. For me it worked. <3 Apple...

like image 133
Andrey Gagan Avatar answered Nov 13 '22 05:11

Andrey Gagan


I am experiencing the same problem. A little showstopper when trying to check the offline behavior of your App (e.g. Reachability, custom error messages etc).

This is a known Bug with Xcode 7 and iOS 9, already reported with Apple some month ago: http://www.openradar.appspot.com/23021571

You were likely unable to find it because it's not called "flight mode" but "airplane mode" officially.

like image 35
Frederik Winkelsdorf Avatar answered Nov 13 '22 05:11

Frederik Winkelsdorf