Search code examples
pythonswiftxcode

Logging Error: Failed to initialize logging system. Log messages may be missing.?


Logging Error: Failed to initialize logging system. Log messages may be missing. If this issue persists, try setting IDEPreferLogStreaming=YES in the active scheme actions environment variables.

Has anyone else encountered this message?

Where is IDEPreferLogStreaming located? I don't know what any of this means.

It's building my app successfully but then loading it like its a computer using floppy discs (crazy slow).

Any ideas?

I tried wiping my OS and reinstalling. I've reinstalled Xcode twice now. Nothing.

A colleague of mine is working on the same SwifUI project with no issues.


Solution

  • To find IDEPreferLogStreaming, you need to go to Product -> Scheme -> Edit Scheme and then add it as a new Environment Variable yourself.

    IDEPreferLogStreaming=YES
    

    For me it didnt solve the issue though --- [Edit: it works for me now as well. Probably I was to quick saying it doesnt. Thanks for your feedback.]

    Edit Scheme Area