I am working on an iOS app that connects to a web service. For development and testing, we use Bonjour to find servers on the local network, and during sign-in the app offers to connect to one of them instead of the production site.
Since upgrading to Xcode 7 on El Capitan, I am unable to connect from the Simulator to a web server running on the same Mac. I am able to reproduce this issue using Simulated Mobile Safari and the web server that comes with the stock Python in OS X.
- Open Terminal, start a web server: python -m SimpleHTTPServer 8000
- Open Safari inside the Simulator, enter URL: http://my-computer-name.local.:8000/
Simulated Mobile Safari displays "Safari cannot open the page because it could not connect to the server."
Additionally, the following message appears in the Console each time I try to load the URL:
assertiond[____]: assertion failed: 15A284 13A340: assertiond + 13207 [28CC4371-F3F9-3578-9436-310B23A2C638]: 0x1
Other possibly relevant facts:
- Desktop Safari is able to connect using the URL http://my-computer-name.local.:8000/
- Real Mobile Safari (on an iOS device on the same network) is able to connect using the URL http://my-computer-name.local.:8000/
- Simulated Mobile Safari is able to connect using the URL http://127.0.0.1:8000/ (I need it to work with the Bonjour provided hostname, though).
- Simulated Mobile Safari is able to connect to another machine with an URL like http://other-computer.local.:8000/
- I'm using Simulator Version 9.0 (SimulatorApp-620 CoreSimulator-179)
- Searching the web for the UUID 28CC4371-F3F9-3578-9436-310B23A2C638 yields only a handful of job posts.
- This does not appear to be related to App Transport Security. My app behaves this way when ATS is disabled.
Are you able to reproduce this problem? Am I missing something?