HTTP Requests Failing on iOS Simulator but Working on Physical Devices

Hello everyone,

We are currently facing an issue when testing our hybrid mobile application (built with Ionic and Angular) on the iOS Simulator.

The app works perfectly on physical iOS devices — all HTTP requests complete successfully. However, when running the same build on the iOS Simulator, every HTTP request fails with the following error:

{ "headers": { "normalizedNames": {}, "lazyUpdate": null, "headers": {} }, "status": 0, "statusText": "Unknown Error", "url": "https://api.bizify.com.br/demo/api/ping", "ok": false, "name": "HttpErrorResponse", "message": "Http failure response for https://api.bizify.com.br/demo/api/ping: 0 Unknown Error", "error": { "isTrusted": true } }

We have confirmed that the API endpoint https://api.bizify.com.br/demo/api/ping is reachable and secured with a valid SSL certificate.

This issue occurs only in the iOS Simulator — not on Android devices or physical iOS devices.

Has anyone encountered this issue before? Any insights on why the iOS Simulator might be blocking or failing these HTTPS requests — and how we could resolve it — would be greatly appreciated.

Thank you for the post and the details, including the error message. It is quite interesting.

Could you please confirm if the physical device is connected to the same Wi-Fi network as the macOS? Are there any (MDM) or policies on the Mac that are not present on the physical device?

Additionally, could you open the browser and navigate to the URL displayed in the error message? Is there a corporate firewall on the Wi-Fi network for the Mac that may not be present on the physical device?

Lastly, is this issue only occurring within your network? Have you tried another network?

Albert Pascual
  Worldwide Developer Relations.

Hi Albert,

Here’s what we’ve verified so far:

Network environment:

  • The physical iOS device and the Mac (running the Simulator) are connected to the same Wi-Fi network.
  • We also tested on different networks, including a mobile hotspot, and the issue persists only in the iOS Simulator.
  • There are no MDM profiles or network policies applied to the Mac — it’s a standard development setup.

Direct browser test:

  • We opened the same URL (https://api.bizify.com.br/demo/api/ping) in Safari on macOS — it loads successfully with a valid SSL certificate and returns the expected JSON response.

Firewall / proxy check:

  • No corporate firewall or proxy is configured on this network.
  • The macOS firewall is currently disabled.

This issue is also affecting our App Store Connect review process — the app build fails during TestFlight review because testers are unable to log in due to failed HTTP requests. Even Apple reviewers, testing from different networks, encounter the same issue when running the app in the iOS Simulator.

Do you think this could be related to recent changes in Simulator networking behavior or HTTPS handling in the latest SDKs? Any guidance on how we could further debug or configure the Simulator environment to resolve this issue would be greatly appreciated.

HTTP Requests Failing on iOS Simulator but Working on Physical Devices
 
 
Q