Skip to content

Build and run in the iOS Simulator - #653

Open
RageMC wants to merge 1 commit into
willfaust:mainfrom
RageMC:simulator-build
Open

RageMC wants to merge 1 commit into
willfaust:mainfrom
RageMC:simulator-build

Conversation

@RageMC

@RageMC RageMC commented Dec 2, 2026 •

Copy link
Copy Markdown

These changes let Madeira build and start in the iOS Simulator, which makes UI and library work possible without a device. Every change is behind targetEnvironment(simulator) / TARGET_OS_SIMULATOR or an sdk=iphoneos* setting, so device builds are unchanged:

  • MetalFX is linked for iphoneos SDKs only, because the Simulator has no MetalFX.
  • EntitlementChecker: the Simulator has no code-signing flags to read, so the app counts as debuggable and debugged.
  • JITAllocator: the Simulator runs on the Mac's kernel, so RX memory comes from vm_allocate + vm_protect instead of the device's JIT path.
  • WiniosGL / ntdll-unix (signal_arm64_ios.c, virtual_ios.c): device-only paths are skipped in the Simulator.

The patch came from Triptych's Madeira tree. It applies cleanly to current main, but I didn't build it here (no full Xcode project build on this machine). Games themselves still need a device.

🤖 Generated with Claude Code

The Simulator has no MetalFX (link it on device SDKs only), no code
signing flags to check (treat the app as debuggable and debugged), and
runs on the Mac's kernel, where RX memory comes from vm_allocate +
vm_protect instead of the device's JIT path. Device builds are
unchanged: every change is behind targetEnvironment(simulator) /
TARGET_OS_SIMULATOR or an sdk=iphoneos* setting.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant