SystemConfiguration.CaptiveNetwork doesn't work on iOS 12

后端 未结 1 1640
清酒与你
清酒与你 2020-12-29 07:40

I have a function that detects the current SSID from the user. Unfortunately this doesn\'t work anymore with iOS 12. This means it just jumps over the if let interface

1条回答
  •  Happy的楠姐
    2020-12-29 08:04

    To use this function in iOS 12 and later, enable the Access WiFi Information capability for your app in Xcode. When you enable this capability, Xcode automatically adds the Access WiFi Information entitlement to your entitlements file and App ID.

    https://developer.apple.com/documentation/systemconfiguration/1614126-cncopycurrentnetworkinfo?language=objc

    0 讨论(0)
提交回复
热议问题