I face the problem that my app calls:
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions [UIApplicationLaunchOptionsKey: Any]?) -> Bool
then do something and finally calls func applicationDidEnterBackground
.
The app actually contains in the app stack. I can switch back to the home screen of the simulator and back into the program. Unfortunately the function viewDidLoad
is never called.
How can I debug whats happen and where the app "stops" and call the background function instead of active?
Thanks in advance.