最近集成支付宝支付的时候,发现再添加依赖库后,运行模拟器控制台打印如下错误,并且模拟器停留在启动页
[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.}
解决方法:
1、打开终端输入如下指令
xcrun simctl spawn booted log config --mode "level:off" --subsystem com.apple.CoreTelephony
2、然后完全退出模拟器,再次运行就很好了!