Reputation: 5160
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
Reputation: 1398
Ok, i found workaround. Just turn off the Personal Hotspot in Settings. For me it worked. <3 Apple...
Upvotes: 89
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