Debug situation 'at wakeup' of an iPad

Hi, We seem to have an issue in our app that only seems to occur at wakeup of the iPad. So:

  • Wakeup iPad
  • Launch my App
  • Push 'on/off button' of iPad to put it to sleep
  • Wait 'a bit' (like 15 minutes) for iPadOS to truly sleep
  • Wake up the iPad (press on/off button again and enter pin code)
  • (app is still/again in front)
  • Now the behaviour of the app is incorrect

How do I debug this with xcode? The connection between xcode and the app is also terminated when the iPad sleeps.

Thanks for your advice! Kind regards, Wouter Wessels

Replies

The Console app in /Applications/Utilities/ will output device logs even when Xcode has lost a connection to the app, because the app is still generating logs on the device. So, you might find it useful to put some logging in the various relevant parts, like applicationWillResignActive etc.