iosswift

How can i read the log when App from not running to active?


My App's 3D-touch doesn't work when app was force closed (it runs well when app form suspend to active). So, I want to catch the log of launchOptions.

But, when I force close app, the console stop catching log anymore.

Please tell me what can I do?


Solution

  • When you do a force close in app, Xcode stops the execution of it, what you could do after that is attach the app running again. Once you close it, open the app again (once that it was closed by force) and go to Debug > Attach to Process and your app name should be there, select it and it will wait for the app for start, this works with a device, not sure about the simulator.