hi everybody, When I use the following code to connect to WiFi network, an error message of "error=null" or "error='Error Domain=NEHotspotConfigurationErrorDomain Code=11 "<unknown>" UserInfo={NSLocalizedDescription=<unknown>}' " will occur. It has been uploaded to Feedback. Feedback ID: FB16819345 (WiFi-无法加入网络)
NEHotspotConfiguration *hotspotConfig = [[NEHotspotConfiguration alloc] initWithSSID:ssid passphrase:psk isWEP:NO]; [[NEHotspotConfigurationManager sharedManager] applyConfiguration:hotspotConfig completionHandler:^(NSError * _Nullable error) { }];
It’s better to reply as a reply, rather than in the comments; see Quinn’s Top Ten DevForums Tips for this and other titbits.
so we're not checking it
I recommend that you do. If the probability is about 10%, you’ll need at most 50 manual tests to confirm whether this is an API issue or not. That’s probably less than an hour’s work. Or you could automate it with an Xcode UI test.
Anyway, the reason why I ask is because, if the problem reproduces in Settings, you know that your code is correct, in which case the next step is to file a bug report. And that brings me to this:
Can you process this order number
FB16819345
I had a look at that bug and it’s on its way back to you with a request for more info. When filing a bug report about Wi-Fi, it’s vital that you include a sysdiagnose log taken shortly after reproducing the problem. Better yet, follow the Wi-Fi for iOS/iPadOS instructions on our Bug Reporting > Profiles and Logs page.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"