iOS-报错 Error Domain=NSCocoaErrorDomain Code=4099

[Client] Sending selectors failed with: 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.}

如图


F83E958ACF0E99EB79AA3ED8ACA5B6AD.png

解决办法:
在终端运行下面这行:
xcrun simctl spawn booted log config --mode "level:off" --subsystem com.apple.CoreTelephony

原文链接:https://stackoverflow.com/questions/52455652/xcode-10-seems-to-break-com-apple-commcenter-coretelephony-xpc*