ytpm
ytpm

Reputation: 5160

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.

Does anyone have a clue?

Upvotes: 26

Views: 7480

Answers (2)

Andrey Gagan
Andrey Gagan

Reputation: 1398

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

Upvotes: 89

Frederik Winkelsdorf
Frederik Winkelsdorf

Reputation: 4573

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.

Upvotes: 8

Related Questions