Test Safari and the iPhone Simulator on Windows: Step by Step with a Rented Mac
Your site is perfect in Chrome but broken in Safari on iPhone? There is no current Safari for Windows, and the iOS Simulator only runs on macOS. Step by step: test with Safari Web Inspector, Responsive Design Mode and the iOS Simulator on a rented Mac, and open your local dev server to the Mac with an SSH tunnel.
A classic web developer problem: the site works perfectly in Chrome and Firefox on Windows, then a client sends a screenshot saying "the menu doesn't open on my iPhone". Every browser on iPhone uses Apple's WebKit engine, so you only see these bugs in Safari. This guide shows how to test in Safari and the iPhone Simulator while working on Windows.
Quick summary: Apple dropped Safari for Windows years ago, and the iOS Simulator only runs on macOS with Xcode. A real Mac is the most reliable way. If you don't own one, rent a Mac for a day, connect to its desktop over VNC and test your site with Safari's developer tools and the iOS Simulator. TürkiyeVPS Mac mini rental is daily, weekly or monthly, and the whole Mac is reserved for you.
Options for testing Safari on Windows
| Method | What you get | Limit |
|---|---|---|
| Old "Safari for Windows" | Nothing useful | Not updated for many years; unrelated to today's Safari, don't install it |
| Playwright WebKit (Windows) | The WebKit engine in automated tests | Not Safari itself; misses iOS-specific behaviour (keyboard, address bar, safe areas) |
| Cloud browser testing services | Remote Safari / iPhone in your browser | Billed per minute or plan; Web Inspector and access to local sites can be limited |
| A real iPhone | Real device behaviour | From Windows you can't attach Safari Web Inspector; debugging is hard |
| Rented Mac | Current Safari, Web Inspector, many iPhone and iPad models in the iOS Simulator | You connect to the Mac over VNC |
1. Connect to the Mac and install Xcode
- When the Mac is delivered you receive SSH and VNC (Screen Sharing) details. Connect to the desktop from Windows with a VNC client (for example RealVNC Viewer or TigerVNC). Details: connect to a remote Mac with VNC and SSH.
- Safari is already installed on macOS. For the iOS Simulator, download Xcode from the App Store with your own Apple ID; Xcode is large, so start the download in the first hour of your rental.
- Open Xcode once and install the extra components and the iOS platform (Simulator runtime) it asks for.
2. Turn on Safari's developer tools
In Safari go to Settings → Advanced and tick "Show features for web developers" (older versions: "Show Develop menu"). A Develop menu appears in the menu bar:
- Web Inspector: right-click the page and choose "Inspect Element"; like Chrome DevTools you get the DOM, CSS, console and network requests.
- Responsive Design Mode: Develop → "Enter Responsive Design Mode" shows the page at different iPhone and iPad screen sizes.
3. Open real iPhone Safari in the iOS Simulator
The Simulator runs a copy of iOS on the Mac; its Safari behaves like the one on iPhone (address bar, on-screen keyboard, safe areas). In Terminal:
xcrun simctl list devices available
xcrun simctl boot "iPhone 16"
open -a Simulator
xcrun simctl openurl booted https://your-site.example
Device names depend on the Xcode version; use one from the list. To inspect the Simulator page from Safari on the Mac: Safari → Develop → the Simulator name → the open page. Now you can fix an iPhone-only CSS bug live in Web Inspector.
4. Open your localhost site to the Mac
If your site isn't online yet and runs on Windows at an address like localhost:3000, open it to the Mac with a reverse SSH tunnel. In PowerShell on Windows:
ssh -p SSH_PORT -R 8080:localhost:3000 user@MAC_ADDRESS
While the connection stays open, http://localhost:8080 in Safari or the Simulator on the Mac shows your Windows dev server. You don't have to put the site on the internet; the traffic travels encrypted inside the SSH connection.
5. Automate the tests (optional)
On the same Mac you can run WebKit tests with Playwright or take screenshots with xcrun simctl:
npx playwright test --project=webkit
xcrun simctl io booted screenshot iphone.png
For continuous testing, turn the Mac into a GitHub Actions runner: macOS runner for GitHub Actions and GitLab.
The most common Safari bugs
- Screens overflowing with
100vh: the visible height changes with the iOS Safari address bar; use100dvhor100svh. - Buttons hidden under the notch or home bar: leave space with
env(safe-area-inset-bottom). - The page zooms when you tap an input: iOS zooms into fields with a font size below 16 pixels.
- Date and number inputs look different: iOS uses its own pickers; always try them in the Simulator.
Frequently Asked Questions
Can I install a current Safari on Windows?
No. Apple dropped the Windows version of Safari years ago. Current Safari only runs on macOS, iOS and iPadOS.
Does the iOS Simulator run on Windows?
No. The iOS Simulator is part of Xcode and only runs on macOS. On Windows you need a Mac that you connect to remotely.
Does renting a Mac make sense for a few hours of testing?
For a one-off bug a daily rental is enough: connect, download Xcode, run your tests and let the rental end. If you test regularly, a weekly or monthly plan fits better.
Is the Simulator enough instead of a real iPhone?
Most layout, CSS and JavaScript bugs show up exactly the same in the Simulator. For hardware-related topics such as the camera, notifications or performance, we recommend one more check on a real device before release.
You might also like
How long should you rent a Mac to upload an iOS app to the App Store, get a Flutter build or set up a CI machi...
You may need a Mac for only one day to get your iOS app onto the App Store. What to prepare before you rent, w...
You work on Windows but need to get your app onto the App Store. Why a Mac is required, what your options are,...