This happens when trying to connect to my development web server. The app works fine when connecting to my production server.
The production server has a certificate purchased from a CA. My development web server has a locally generated certificate (from mkcert).
-
I have dragged and dropped the rootCA.pem onto the Simulator, although it doesn't indicate it has been loaded the certificate does appear in the Settings app and is checked to be trusted.
-
I have enabled "App Sandbox" and "Outgoing connections (Client)".
-
I have tested the URL from my local browser which is working fine.
What am I missing?
Yeah, App Sandbox is a macOS technology. iOS apps are always sandboxed. The underlying technology is the same, but there are significant differences in practice, and hence the Mac-specific term.
Didn’t we drive this to a conclusion in your previous thread? What’s changed since then?
Oh, one thing that has changed is that the simulator is having problems local network operations. See this thread. See TN3179 Understanding local network privacy for a definition of a local network operations. Unless you fancy upgrading to macOS 15.6 beta, it’s best to test this stuff on a real device.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"