Code=4099


[Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}

[Client] Updating selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.apple.commcenter.coretelephony.xpc was invalidated.}
 

在 终端

执行:
Mac % xcrun simctl spawn booted log config --mode "level:off"  --subsystem com.apple.CoreTelephony

报错:
xcrun: error: unable to find utility "simctl", not a developer tool or in PATH


解决办法:
意思是环境变量少 developer tool 
解决方法就是打开 Xcode 的设置,
Preferences > Locations > Command Line Tools 中选择下当前的 Xcode,可能会提示输入密码。完成即可。

推荐阅读更多精彩内容