How to debug APP extensions with NSLog?

When debugging APP extensions, it's very troublesome to have no logs. Can you output logs during debugging?

Accepted Reply

Xcode’s ability to catch logging output from a process depends on how the process was launched. This can be problematic for app extensions, where the process is launched by the system not Xcode. I solve this problem by using the Console app to display log entries. You can find more details in this post.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Replies

Xcode’s ability to catch logging output from a process depends on how the process was launched. This can be problematic for app extensions, where the process is launched by the system not Xcode. I solve this problem by using the Console app to display log entries. You can find more details in this post.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Seeing this, the whole mood is not good.