2

I am facing a strange issue from last few days. NSLog doesn't show anything in the debugger area. This issue is strange because NSLog is working perfectly upto appDelegate. I have some NSLog statements in didFinishLaunching method and these logs are shown in the console. Any NSLog statements after this point is simply skipped.

I searched for any redefinitions like #define NSLog(...). But i couldn't find any. Then I checked if the console is deactivated. Pressing Shift + + C, but it didn't help.

Also, the debugger is set to show All output.

If the app crashes,it normally used to show something like : Terminating app...Reason:... But now the app simply crashes. It doesn't show anything. So, after appDelegate, the console is dead.

What can be the issue? Anybody faced this before?

EDIT: The following is a similar issue. https://teamtreehouse.com/community/nslog-will-not-output-from-the-viewcontroller-class-but-will-from-the-appdelegate-class

abhimuralidharan
  • 5,752
  • 5
  • 46
  • 70

1 Answers1

3

If you are able to print the logs in AppDelegate and if this issue comes after the app has launched,then the issue should be in the didFinishLaunchingWithOptions method. Just check for any unwanted code inside this method.I had the same issue.

Abin Baby
  • 586
  • 6
  • 17