3

We can log with NSlog in other view in iOS 8 (Xcode Beta Version).

However, I can't NSLog in keyboard extension in KeyboardViewController. It didn't appear in log.

NSLog(@"viewdidload in keyboard");

I would like to know how to detect/log in real time.

Andrew
  • 15,357
  • 6
  • 66
  • 101
Khant Thu Linn
  • 5,905
  • 7
  • 52
  • 120
  • possible duplicate of [How to debug iOS 8 extensions with NSLog?](http://stackoverflow.com/questions/24031612/how-to-debug-ios-8-extensions-with-nslog) – Andrew Jun 09 '14 at 15:01

1 Answers1

6

You just don't see what is being logged in the debug area of Xcode because the Xcode debugger isn't attached to your extension. Extensions are nearly completely independent from their containing app.

Answered here: for physical device: https://stackoverflow.com/a/24050325/1453948 for simulator: https://stackoverflow.com/a/24043265/1453948

So in case of simulator go to Simulator menu Debug -> Open System Log

Community
  • 1
  • 1
David V
  • 2,134
  • 1
  • 16
  • 22