If you upgraded to Xcode 16.3, be warned: there appears to be a simulator bug that causes network access to fail regularly. It doesn't affect devices, just the simulator. You can work around it by using URLSession(configuration: .ephemeral) rather than URLSession.shared.
@twostraws Thanks. I was pulling my hair on this one yesterday.
@twostraws I noticed this as well, but it also appears running an image with a previous version of iOS (in my case, 18.2) is a workaround.
@rminerick Yeah, I'm using 18.3 just fine.
@twostraws hmm... something similar happened to me in 16.2. Interesting.

@twostraws hmm I had no problems with networking.

But the view debugger is broken for me on any simulator older than 18.4

@twostraws There’s a bug number on this thread.

https://developer.apple.com/forums/thread/777999

URLSession is broken in iOS 18.4 R… | Apple Developer Forums

@justkwin Knowing that The Eskimo is tracking the problem does a lot to my put mind at rest 🙇‍♂️
@twostraws thank you! it drove me insane