Skip to content
← All writing

WebGPU exists. My iOS Simulator still can't draw.

Apple's simulator exposes the graphics API, then refuses to give it a GPU adapter. An afternoon of testing Notidian left me wondering how developers are supposed to work like this.

Notidian running in the iOS Simulator with an Editor graphics unavailable warning and a Retry graphics button

I wanted to test drawing in Notidian, the app I’m building. Drawing is one of its most important features, so getting the app to open and checking that the buttons look nice only gets me so far. I need to know whether I can draw in it.

So we updated macOS, updated Xcode, installed the latest stable iOS simulator available to us, and built the app again.

The interface opened. The drawing engine couldn’t start.

isSecureContext;                       // true
Boolean(navigator.gpu);                 // true
await navigator.gpu.requestAdapter();   // null

We spent the afternoon trying to understand that last line. The API was there. Why couldn’t it give us an adapter?

Cover: cropped screenshot of the Notidian QA build running in the iOS 27.2 Simulator during this investigation. The warning is the app's own response to the missing WebGPU adapter.

Yes, we checked the switches

At first, I assumed we’d missed a setting or run into a Tauri problem. Perhaps the runtime was too old. WebGPU can exist on navigator without providing a usable GPU adapter, which makes a quick API-support check rather misleading.

We built a separate, minimal native WKWebView app, then opened the same diagnostic page in Safari inside the simulator. Both returned null without running any of Notidian’s drawing code. Blaming Tauri wasn’t getting us anywhere either: Safari had the same problem.

In Settings → Apps → Safari → Advanced → Feature Flags, WebGPU was already on. So were GPU Process: Canvas Rendering and GPU Process: DOM Rendering. We hadn’t forgotten to enable it.

Default adapter requests, low-power and high-performance preferences, a compatibility-mode request, and a forced-fallback request all returned null in both browsers. Trying a fallback was a diagnostic, not evidence that Safari implements a software adapter.

These tests ran on an Apple M3 Max Mac with macOS 26.7.2, Xcode 27.2, and the iOS 27.2 Simulator, using the iPhone Duo device profile. The exact builds were 25G332, 27B52, and 24B91014 respectively. Safari reported version 27.2. I’m recording the versions because a future simulator may behave differently; I haven’t tested every older one.

The Mac’s GPU wasn’t asleep

We also tested native Metal in the same simulator. It created a device called Apple iOS simulator GPU, rendered a red texture, completed the command buffer, and returned the expected pixel: [255, 0, 0, 255].

Basic GPU rendering worked, then. Asking WebGPU for an adapter still returned null.

Apple’s Simulator runs software adapted for the Mac; it doesn’t fully emulate an iPhone’s hardware and graphics drivers. Our probe also found no support for the Apple4, Apple5, Apple6, Apple7, or Mac2 GPU families we queried. The Mac had enough GPU power to render our test, but that didn’t mean its simulator exposed the capabilities WebKit expects.

Then we looked at WebKit’s hardware-capability code. The source we inspected contains this branch:

#if PLATFORM(IOS_FAMILY_SIMULATOR)
    return false;

That’s inside isPhysicalHardware(). The caller returns no hardware capabilities when that check fails, and adapter creation returns a null adapter when capabilities are unavailable.

The existing WebKit report “Disable support on VMs and simulators” was resolved when the disabling change landed. Confusingly, “Fixed” means the restriction was implemented. It doesn’t mean WebGPU started working in the simulator.

The newer report “Enable WebGPU Swift on iPhone simulator” sounded hopeful. Its description concerns Swift/C++ interoperability and an SDK build problem, though. It isn’t confirmation that Safari can create a WebGPU adapter in a released simulator.

That source agrees with what we measured, though we haven’t established the exact revision used to build the installed framework or tested a custom WebKit build. We also made the detour longer than it needed to be. We should have checked the source and tracker before assuming another round of updates might fix it.

Apple, what exactly is the game here?

I understand that a simulator has limits. Nobody expects it to reproduce the feel of an Apple Pencil, battery behaviour, or every detail of an iPhone’s GPU.

But this is a frustrating place to draw the line. I can build the app, launch it, automate its interface, and ask a standard web graphics API for an adapter. The answer is simply null. Finding out that the simulator is deliberately excluded takes me out of my app and into WebKit’s source and issue tracker.

I can use Apple’s simulator for much of the app, then have to stop at the feature I most need to test. For this workflow, it isn’t a reliable substitute for the device I’m developing for.

It makes me wonder what game Apple is playing. Is this a hard engineering constraint, unfinished simulator support, or something Apple hasn’t made a priority? I can’t tell, and I don’t have evidence of a commercial motive. After updating the whole stack, I still can’t properly test the drawing app I’m trying to build.

Give me a diagnostic that says “unavailable in the iOS Simulator” and a documented explanation of why. A tracked path to support would help too. Digging through source code to find out whether I missed a checkbox is a lousy use of development time.

What I’m doing instead

For now, the simulator can cover app navigation and the workflows that don’t require WebGPU drawing. Desktop WebGPU browsers can exercise the drawing engine, but a passing desktop test doesn’t prove that the iOS app works. The complete iOS drawing path still needs testing on a physical iPhone or iPad.

That means keeping a device available and unlocked for automated UI tests, dealing with pairing and developer setup, and using a live development connection to keep iteration bearable. I expect to do that for device testing. Having to do it whenever I want to check the core graphics workflow of an iOS webview app is getting old.

We’ve prepared an enhancement request with the reproduction and measurements. We haven’t submitted it yet; the Bugzilla login step is still outstanding.

I don’t need the simulator to be a perfect iPhone. I would like to draw a line in my drawing app without first turning my actual phone into permanent test equipment.