When I used the iPhone 11 to scan the wifi connection, the system reported an error,
‘’’ let config = NEHotspotConfiguration(ssid: name, passphrase: passwd, isWEP: false) let manager = NEHotspotConfigurationManager() manager.apply(config) { error in } ’’’
NEHotspotConfigurationErrorDomain Code=8 “internal error.” , the only thins that fixes this issue it restarting the iPhone. What is the reason for this and how to solve it?
Reference link: https://developer.apple.com/forums/thread/111638 https://cloud.tencent.com/developer/ask/sof/114654981
You’ve already found the previous thread on this topic, which leads to my answer on an ever earlier thread. Things haven’t changed fundamentally since then.
If you encounter NEHotspotConfigurationErrorInternal
and the problem clears when you restart the device, that’s clearly a bug and you should file it as such. Specifically, see the Wi-Fi for iOS/iPadOS instructions on our Bug Reporting > Profiles and Logs page.
If you do file a bug, please post your bug number, just for the record.
IMPORTANT Just because someone has previously filed a bug about this shouldn’t discourage you from filing your own. For example, the above-mentioned thread was from 2018, that is, seven years ago. Many of the bugs mentioned there have been fixed. However, if you’re hitting this problem on modern systems then either a patch has come unstuck or you’re dealing with a different issue with similar symptoms.
If this problem isn’t cleared by a restart then that’s a different issue. However, the path forward is gonna be the same. Any instances of NEHotspotConfigurationErrorInternal
need to be looked at by Apple’s Wi-Fi engineers.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"