# Cross-compile for \`aarch64-macos\` fails with "unable to find system framework"

**URL:** <https://ziggit.dev/t/cross-compile-for-aarch64-macos-fails-with-unable-to-find-system-framework/18605>\
**Category:** Help\
**Tags:** build-system, cross-compile, linux, handmade\
**Created:** [November 26, 2026, 8:10pm UTC](https://ziggit.dev/t/cross-compile-for-aarch64-macos-fails-with-unable-to-find-system-framework/18605 "2026-11-26T20:10:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![g1rly-c0d3r](https://ziggit.dev/user_avatar/ziggit.dev/g1rly-c0d3r/32/8578_2.png) [@g1rly-c0d3r](https://ziggit.dev/u/g1rly-c0d3r)\
**Post date:** [November 26, 2026, 8:10pm UTC](https://ziggit.dev/t/cross-compile-for-aarch64-macos-fails-with-unable-to-find-system-framework/18605/1 "2026-11-26T20:10:14Z")

</div>

I am building a minesweeper clone using raylib and [raylib-zig](https://github.com/raylib-zig/raylib-zig), but when I try to cross-compile for mac, I get the following error:

```zig
[kronos] ~/Documents/code/zig/minesweeper 
 0 $ zb -Dtarget=x86_64-macos
install
└─ install minesweeper
   └─ compile exe minesweeper debug x86_64-macos failure
error: error: unable to find system framework "Foundation". searched paths: none
       error: unable to find system framework "CoreServices". searched paths: none
       error: unable to find system framework "CoreGraphics". searched paths: none
       error: unable to find system framework "AppKit". searched paths: none
       error: unable to find system framework "IOKit". searched paths: none
       error: unable to find system framework "QuartzCore". searched paths: none
       
error: process exited with code 1
failed command: /home/eos/.local/bin/zim-data/0.17.0/zig/zig build-exe -Odebug -target x86_64-macos -mcpu baseline --dep raylib=raylib-zig --dep raygui --dep style --dep icons -Mroot=src/main.zig .zig-cache/o/e47b59f657b90f3c7e7ebb90d7325f9a/libraylib.a -Osafe -target x86_64-macos -mcpu baseline -I .zig-cache/o/7f4e85bb27ac7eaa17056763e7bbd6e2 -Mraylib-zig=zig-pkg/raylib_zig-6.2.0-KE8RELGmBQDX1v1DqBN57pNxJ-b-MIa1S-M7NXT9Eplr/lib/raylib.zig -Osafe -target x86_64-macos -mcpu baseline --dep raylib-zig -Mraygui=zig-pkg/raylib_zig-6.2.0-KE8RELGmBQDX1v1DqBN57pNxJ-b-MIa1S-M7NXT9Eplr/lib/raygui.zig -Mstyle=style/minesweeper.rgs -Micons=style/minesweeper.rgi -framework Foundation -framework CoreServices -framework CoreGraphics -framework AppKit -framework IOKit -framework QuartzCore -lc --cache-dir .zig-cache --global-cache-dir /home/eos/.cache/zig --build-root . --name minesweeper --zig-lib-dir /home/eos/.local/bin/zim-data/0.17.0/zig/lib/ --listen=-

Build Summary: 3/6 steps succeeded (1 failed)
install transitive failure
└─ install minesweeper transitive failure
   └─ compile exe minesweeper debug x86_64-macos failure

```

I am on arch linux and I’m just not sure where to get these system frameworks or how to tell the compiler to look for them. I’m new to this whole cross-compilation thing, but I want to make sure my friends can play as well.
