WatchOS and iOS Console Output

Does anyone know how to show the NSLog or print() console output for both the WatchOS app and the iOS app at the same time? I've tried the Debug -> Attach to Process but it doesn't show NSLog or print() console output. I can go into the device and view the full system logs but there is a lot else going on in the full system log and a lot of noise. Thanks.

Answered by douglasak in 9436022

I'll answer my own question. You need to go to Debug -> Open System Log... in the iOS simulator and then go to the following location:

~/Library/Logs/CoreSimulator/<simulator-hash>/system.log


Also, you need to use NSLog instead of print() because only NSLog will output to the System Log.


See below:

http://stackoverflow.com/questions/10165641/how-can-i-get-the-console-logs-from-the-ios-simulator

Accepted Answer

I'll answer my own question. You need to go to Debug -> Open System Log... in the iOS simulator and then go to the following location:

~/Library/Logs/CoreSimulator/<simulator-hash>/system.log


Also, you need to use NSLog instead of print() because only NSLog will output to the System Log.


See below:

http://stackoverflow.com/questions/10165641/how-can-i-get-the-console-logs-from-the-ios-simulator

WatchOS and iOS Console Output
 
 
Q