fetchCurrent(completionHandler:) https://developer.apple.com/documentation/networkextension/nehotspotnetwork/fetchcurrent(completionhandler:)
The same code works fine in Xcode 16, but when I run the same project in Xcode 26, it doesn't work
I’m not aware of any Xcode 26-specific problem with this API. I’ve also not see any feedback about problems with this API in recent OS releases. I suspect that your code has some other issue that just happens to cause this failure.
My advice is that you isolate the problematic code into a small test project. It should either work there, or present you with an easier debugging task.
To get you started you can crib my code from Getting WIFI SSID.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"