简体   繁体   English

iOS12,无法执行kReachabilityChangedNotification

[英]iOS12, kReachabilityChangedNotification is not worked

iOS 12 version is not work to kReachabilityChangedNotification. iOS 12版本不适用于kReachabilityChangedNotification。

(The networking change Notification. NO accessibility technology) (网络更改通知。无障碍技术)

but iOS 8 version is good working. 但iOS 8版本运作良好。

what happend? 发生了什么事?

Xcode version is 10.1 Xcode版本是10.1

how to get fix? 如何获得修复?

Reachability not Notification reason is, 可达性而非通知原因是,

USB cable connecting with XCode debug mode. USB电缆与XCode调试模式连接。

(But ios8 version device is no problem, only ios12 version device have a problem) . (但是ios8版本设备没有问题,只有ios12版本设备有问题)。 . . . .

But correct operation to Notification, disconnect USB cable without XCode, 但是请正确操作通知,断开没有XCode的USB电缆,

In iOS 12 Reachability feature is off by default. 在iOS 12中,“可达性”功能默认情况下处于关闭状态。 You must manually enable it on your iPhone by venturing into Settings → General → Accessibility → Reachability. 您必须通过进入设置→常规→可访问性→可达性,在iPhone上手动启用它。

For more information you can check this link 有关更多信息,您可以检查此链接

You can also try adding NSAppTransportSecurity to info.plist file 您也可以尝试将NSAppTransportSecurity添加到info.plist文件中

<key>NSAppTransportSecurity</key>  
 <dict>  
      <key>NSAllowsArbitraryLoads</key><true/>  
 </dict>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM