软件运行的好好的,突然黑屏啥也进不去了

iOS-报错 Error Domain=NSCocoaErrorDomain Code=4099

boringssl_metrics_log_metric_block_invoke(153) Failed to log metrics

报错信息:[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.}

2022-05-30 19:06:41.198050+0800 111[1914:25086] METASEC:--Error--:MSHttpInterceptorImpl:Bind fail

2022-05-30 19:06:41.398890+0800 111[1914:25158] [connection] nw_proxy_resolver_create_parsed_array [C1 proxy pac] Evaluation error: NSURLErrorDomain: -1003

2022-05-30 19:06:41.402951+0800 111[1914:25158] [connection] nw_proxy_resolver_create_parsed_array [C2 proxy pac] Evaluation error: NSURLErrorDomain: -1003

2022-05-30 19:06:41.434543+0800 111[1914:25158] [connection] nw_proxy_resolver_create_parsed_array [C3 proxy pac] Evaluation error: NSURLErrorDomain: -1003

2022-05-30 19:06:41.552908+0800 111[1914:25160] [boringssl] boringssl_metrics_log_metric_block_invoke(153) Failed to log metrics

2022-05-30 19:06:41.562690+0800 111[1914:25162] [boringssl] boringssl_metrics_log_metric_block_invoke(153) Failed to log metrics

2022-05-30 19:06:41.582781+0800 111[1914:25158] [boringssl] boringssl_metrics_log_metric_block_invoke(153) Failed to log metrics

2022-05-30 19:06:41.597678+0800 111[1914:25152] [connection] nw_proxy_resolver_create_parsed_array [C4 proxy pac] Evaluation error: NSURLErrorDomain: -1003

2022-05-30 19:06:41.639935+0800 111[1914:25158] [boringssl] boringssl_metrics_log_metric_block_invoke(153) Failed to log metrics

2022-05-30 19:08:41.395790+0800 111[1914:25160] Received XPC error Connection interrupted for message type 3 kCFNetworkAgentXPCMessageTypePACQuery

2022-05-30 19:08:41.396163+0800 111[1914:25160] Received XPC error Connection invalid for message type 3 kCFNetworkAgentXPCMessageTypePACQuery

大概上面的错误:

解决方法:

第一:关闭打印

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

原因是:

大多数情况都是你开启了全局代理(科学上网),而去访问局域网资源~

第二:我在app delegate中多加了一个方法:

- (UISceneConfiguration *)application:(UIApplication *)application configurationForConnectingSceneSession:(UISceneSession *)connectingSceneSession options:(UISceneConnectionOptions *)options  API_AVAILABLE(ios(13.0)) API_AVAILABLE(ios(13.0)) API_AVAILABLE(ios(13.0)){

    return [[UISceneConfiguration alloc] initWithName:@"Default Configuration" sessionRole:connectingSceneSession.role];

}

把这个方法去除就好了。

遇到问题不要慌张,看看最近添加了什么东西。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值