URLConnection won't run

The demo URLConnection project won’t run on the simulator.

I couldn’t get a new project to run while I had a URLConnection object in it, so I went back to one that ran two weeks ago, and now it cannot run.

I’m assuming something security related has changed with apple. Anyone know of anything?

Are you loading http and not https? One of the Apple rules requires https requests unless you use an Info.plist key.


Oddly if I turn on the domain extension capability and add my url it runs in the simulator.
But that won’t build.
If I turn off the capability it will build. And it runs on my device just fine.

Very strange.