編譯時(shí)報(bào)錯(cuò):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.
1.選擇Edit Scheme..
2.選擇Run
3.在Run中選擇Arguments
4.在ENvironment Variables 中添加:
Name:IDEPreferLogStreaming Value為YES

image.png
參考:https://medium.com/@abdusamad2609/logging-error-failed-to-initialize-logging-system-7948dfa77dec