WiFi Connect error,NEHotspotConfigurationErrorDomain code=11

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) {
}];
Answered by DTS Engineer in 829051022

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"

Error 11 in the NEHotspotConfigurationErrorDomain domain is NEHotspotConfigurationErrorUnknown, which isn’t at all helpful.

If you attempt to join the network using Settings > Wi-Fi, does that work?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

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"

Thank you very much for your reply. I have resubmitted the log information in the feedback and followed the guidelines on the Bug Reporting > Profiles and Logs page. Could you please continue to investigate the issue of being unable to join the network?

Written by trenel_fix in 829177022
I have resubmitted the log information in the feedback

Thanks!

Written by trenel_fix in 829177022
Could you please continue to investigate the issue of being unable to join the network?

Me personally? No. But your bug will be looked at by the Wi-Fi engineering team.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Could you please pass on this feedback issue to the Wi-Fi engineering team? Thank you very much!

It's the same issue. Could you help me submit it to the Wi-Fi team for review? Feedback ID:FB16988773 (WIFI-Unable to join network)

Dear Apple Developer Team,

Could you please take a look at the issue where WiFi is still unable to join networks even after updating to the latest iOS 18.4 (22E239) version? This issue has already been submitted as feedback (FB17013980 - iOS 18.4 (22E239) WiFi - Unable to Join Network). We would appreciate your assistance in following up on this matter.

Thank you!

WiFi Connect error,NEHotspotConfigurationErrorDomain code=11
 
 
Q