I’m having trouble tracking down an issue that has appeared in Sequoia debug runs. Built apps don’t appear to have this issue. When my app starts, it makes two requests that both immediately error with -1009, which means there is no internet connection. This is of course not true, and curiously, the problem seems to quickly resolve itself. It’s like there is a delay at launch where URLConnection isn’t working. The URL I’m connecting to is a subdomain I have overridden in my hosts file so it connects to a server in my home instead. It has a self-signed certificate that the system trusts. The app is signed and sandboxed, even in debug runs.
I suspect this has something to do with the local network permissions, but I don’t get asked to allow the app, and it’s also listed as allowed in the local network section of privacy settings.
I’m kind of at a loss with this one. Any ideas?
8 posts - 4 participants