I'm trying to use NSLogger in Xcode XCTests running on the simulator with the desktop viewer running on a separate computer over wifi. I read the advice about using LoggerFlush(nil, true). This works much of the time, but if I don't run a test for a while, the first run will hang on the following line.
Hi,
I'm trying to use
NSLogger
in XcodeXCTest
s running on the simulator with the desktop viewer running on a separate computer over wifi. I read the advice about usingLoggerFlush(nil, true
). This works much of the time, but if I don't run a test for a while, the first run will hang on the following line.https://github.com/fpillet/NSLogger/blob/7c3255dac0a2e160de3672e731d3829ab6f71ae4/Client/iOS/LoggerClient.m#L598
Most often, I can kill the process and rerun and
LoggerFlush
will return and the desktop viewer will show the logs.If I allow it to timeout (about 4/5 minutes),
xctest
reports:Could anyone suggest a direction of investigation?
Here are the NSLogger console logs from a successful round-trip: