Mac升级了系统,升级了Xcode后,每次运行项目都会有许多报错提示,debug窗口出现密密麻麻的错误日志,看着心烦头疼,我们尝试修改掉这些错误日志。
错误日志:
[Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
解决方案:
原因是模拟器的默认设置了开启子系统com.apple.CoreTelephony的日志记录,在终端运行指令关闭它就OK了。
xcrun simctl spawn booted log config --mode "level:off" --subsystem com.apple.CoreTelephony
网友评论