Problem
`ImGuiApp::run()` calls `glfwSetWindowIcon(window_, 1, &icon)` unconditionally on all platforms. Cocoa doesn't support per-window icons at all (macOS apps get their icon from the bundle, not per-window) — GLFW logs this as an error through pex's own error callback, producing visible noise on startup:
```
GLFW error 65548: Cocoa: Regular windows do not have icons on macOS
```
Harmless (not a crash — the call is simply a no-op on this platform) but unpolished, especially for anyone running from Terminal.
Fix
Skip the `glfwSetWindowIcon` call on macOS (e.g. `#ifndef APPLE` around it, or check `glfwGetPlatform() != GLFW_PLATFORM_COCOA`). If a Dock icon is desired later, that's a separate, unrelated mechanism (bundle Info.plist / app icon resource), out of scope here.
Problem
`ImGuiApp::run()` calls `glfwSetWindowIcon(window_, 1, &icon)` unconditionally on all platforms. Cocoa doesn't support per-window icons at all (macOS apps get their icon from the bundle, not per-window) — GLFW logs this as an error through pex's own error callback, producing visible noise on startup:
```
GLFW error 65548: Cocoa: Regular windows do not have icons on macOS
```
Harmless (not a crash — the call is simply a no-op on this platform) but unpolished, especially for anyone running from Terminal.
Fix
Skip the `glfwSetWindowIcon` call on macOS (e.g. `#ifndef APPLE` around it, or check `glfwGetPlatform() != GLFW_PLATFORM_COCOA`). If a Dock icon is desired later, that's a separate, unrelated mechanism (bundle Info.plist / app icon resource), out of scope here.