<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/i-ported-my-vulkan-game-engine-to-macos-in-one-day-uv5z93ymm" -->

---
title: I ported my Vulkan game engine to macOS in one day
description: You can port a Vulkan game to macOS in about a day by running it through MoltenVK or KosmicKrisp, which translate Vulkan calls to Metal. The developer bundles...
canonical: https://daily.dev/posts/i-ported-my-vulkan-game-engine-to-macos-in-one-day-uv5z93ymm
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: I ported my Vulkan game engine to macOS in one day | daily.dev
og:description: You can port a Vulkan game to macOS in about a day by running it through MoltenVK or KosmicKrisp, which translate Vulkan calls to Metal. The developer bundles...
og:url: https://daily.dev/posts/i-ported-my-vulkan-game-engine-to-macos-in-one-day-uv5z93ymm
og:image: https://api.daily.dev/og/posts/uv5Z93YMM.png
og:image:alt: I ported my Vulkan game engine to macOS in one day
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# I ported my Vulkan game engine to macOS in one day

**[Lobsters](https://daily.dev/sources/lobsters)** · 13 min read · 0 upvotes · 0 comments

## Summary

You can port a Vulkan game to macOS in about a day by running it through MoltenVK or KosmicKrisp, which translate Vulkan calls to Metal. The developer bundles the Vulkan SDK libraries into the app, points SDL at them, and requests the portability extensions so non-conformant devices show up. Zig's build system cross compiles SDL and the game for Windows, Linux and macOS without a Mac. A small lipo-style tool merges x86_64 and aarch64 builds into one universal binary. One command, `zig build deploy`, uploads everything to Steam. One bug appeared: on x86_64 Macs with a discrete AMD GPU, unpacking 0xFF gives ~0.9999997 instead of 1.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://gamesbymason.com/blog/2026/porting-nyc-to-macos>

## Questions this post answers

### How do I make a Vulkan game run on macOS when users don't have MoltenVK installed?

Bundle the Vulkan SDK libraries inside the app bundle: libvulkan, libMoltenVK, libkosmickrisp and their ICD JSON files, with the JSON paths adjusted to the bundle layout. Then set SDL's SDL_HINT_VULKAN_LIBRARY to the bundled libvulkan via an @executable_path-relative path, so the loader offers MoltenVK, KosmicKrisp, or both.

_Developers shipping cross-platform games follow Vulkan and Metal tooling changes on daily.dev._

### Why does my Vulkan device selection find no GPU on a Mac using MoltenVK?

MoltenVK is a non-conformant Vulkan implementation, and non-conformant devices are not enumerated by default. Request the VK_KHR_portability_enumeration instance extension when available, and enable VK_KHR_portability_subset on the device when picking a portability device. That extension lets you query why the implementation isn't conformant.

_If you're debugging Vulkan on Apple hardware, daily.dev surfaces graphics-porting fixes from other developers._

### Can I build a universal macOS binary without Apple's lipo tool when cross compiling?

Yes. A universal binary is just per-architecture binaries glued together, and a lipo replacement is small. TigerBeetle's Zig implementation of lipo is only 81 lines. Build x86_64 and aarch64 binaries, merge them with such a tool, then assemble the app bundle. This matters because Steam doesn't distinguish x86_64 from aarch64 builds.

_Anyone shipping Mac builds from Linux or Windows will find cross-compilation tips on daily.dev._

## Community take

How the wider developer community reacted, aggregated from 2 discussions and 8 comments across lobsters, hackernews (as of 2026-11-30).

**TL;DR:** Discussion largely sidesteps the technical porting process and instead debates whether paying Apple's developer fee is comparable to paying Valve for Steam distribution, with some frustration about unsigned macOS binaries triggering scare warnings.

**Sentiment:** 10% positive · 60% mixed · 30% skeptical

**The case for**

- Valve's Steam appid fee is a one-time cost that's recoupable once the game earns over 1000 euros/dollars, unlike Apple's recurring fee.
- Valve doesn't restrict developers from selling on other storefronts or block competitors, unlike Apple.

**The pushback**

- Unsigned macOS apps trigger scary system warnings that most users won't know how to override, effectively forcing developers to pay Apple's annual fee.
- Some argue Apple's fee is comparable to Valve's since both pay for infrastructure and distribution, so singling out Apple as paywalling is inconsistent.
- Steam doesn't let developers target different x86_64 microarchitecture levels, forcing games to use baseline instructions and wasting modern CPU capabilities.

**By community**

- lobsters (mixed): Debate centers on whether Apple's developer fee is meaningfully different from Valve's Steam fee, plus a side request for Steam to support modern x86_64 microarchitectures.
- hackernews (mixed): No substantive comments were provided to characterize the discussion.

**Hottest debate:** Whether paying Apple's $100/year developer fee is fundamentally different from or worse than paying Valve for a Steam appid.

**Open questions**

- Would Valve ever support distinguishing x86_64 v1/v2/v3 builds to let games use more advanced CPU instructions?

**Highlights**

> > you don’t pay Apple you get scare tactics. And that's saying it very mildly! If you ship an unsigned app your user's MacBook will actually claim it's broken. (That's outrageous and not talked about enough.) So you have to guide them through system settings, privacy & security, and have them put in their password to override the block.  98% of your users will never do this. You're forced to pay Apple the annual $100 fee.
> — [abnercoimbre on lobsters · 1 points](https://lobste.rs/s/refvpj/i_ported_my_vulkan_game_engine_macos_one#c_en3tpk)

> > It’s an affront to personal computing that Apple requires developers to pay a subscription for the right to ship software on their platform. Don’t pay it. You already paid Valve for your Steam appid, and they took care of it for you–shipping unsigned macOS binaries on Steam “just works”. I am convinced by the first two sentences, paywalled software ecosystems are iffy. But the logic of the whole paragraph is weird: why is paying Valve for Steam better?
> — [gasche on lobsters · 3 points, 3 comments](https://lobste.rs/s/refvpj/i_ported_my_vulkan_game_engine_macos_one#c_wi1e1k)

> It's likely because you're paying Valve for a service (Steam's infrastructure and distribution), while you're paying Apple just so that they'll allow people to run your software (without scary warnings and workarounds, anyway).
> — [Crestwave on lobsters · 1 points, 1 comments](https://lobste.rs/s/refvpj/i_ported_my_vulkan_game_engine_macos_one#c_varxhv)

> > Steam also doesn’t distinguish between x86_64 v1, v2, or v3–if you’re reading this Valve, this would be a great feature! You’re probably running a x86_64 v3 CPU right now, wouldn’t you like it if the games you play used it? *This*, this! What's the point of most of us having processors capable of running SIMD instructions and the like in games if we never use these extra capabilities because the game was compiled with baseline `x86_64` instructions? We shouldn't have to throw away the hard work of hardware engineers who've worked on more advanced instructions by not compiling for them to cater to the lowest common denominator. *Please Valve*, give us the option to decide what binaries to push to customers based on their processor's microarchitectures.
> — [bthompson on lobsters · 1 points](https://lobste.rs/s/refvpj/i_ported_my_vulkan_game_engine_macos_one#c_4yqxtn)

> I'm unsure about Apple, but Valve's one time appid registration fee is recoupable after the product/app/game earns at least 1000 euros/dollars.
> — [jussi on lobsters · 1 points](https://lobste.rs/s/refvpj/i_ported_my_vulkan_game_engine_macos_one#c_2ugf2m)

**Source threads**

- [lobsters](https://lobste.rs/s/refvpj/i_ported_my_vulkan_game_engine_macos_one) · 26 points · 8 comments
- [hackernews](https://news.ycombinator.com/item?id=50693328) · 5 points · 0 comments

## Similar posts on daily.dev

- [LunarG Releases Vulkan SDK 1.4.335.0](https://daily.dev/posts/lunarg-releases-vulkan-sdk-1-4-335-0-qnvkv93k0) · Khronos · 1 upvotes · 0 comments
- [KosmicKrisp Now Conformant To Vulkan 1.4, Improving Performance Against Apple's Metal](https://daily.dev/posts/kosmickrisp-now-conformant-to-vulkan-1-4-improving-performance-against-apple-s-metal-0jtnsag0r) · Phoronix · 0 upvotes · 0 comments
- [lopespm/zig-minimal-kernel-x86: Minimal x86 Kernel](https://daily.dev/posts/lopespm-zig-minimal-kernel-x86-minimal-x86-kernel-khtajhlzp) · Hacker News · 1 upvotes · 1 comments

---

Tags: [#game-development](https://daily.dev/tags/game-development), [#mac](https://daily.dev/tags/mac), [#zig](https://daily.dev/tags/zig), [#vulkan](https://daily.dev/tags/vulkan)

[View this post on daily.dev](https://daily.dev/posts/i-ported-my-vulkan-game-engine-to-macos-in-one-day-uv5z93ymm)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"I ported my Vulkan game engine to macOS in one day","url":"https://daily.dev/posts/i-ported-my-vulkan-game-engine-to-macos-in-one-day-uv5z93ymm","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/i-ported-my-vulkan-game-engine-to-macos-in-one-day-uv5z93ymm"},"datePublished":"2026-11-30T10:46:35.313Z","dateModified":"2026-11-30T19:47:10.171Z","description":"You can port a Vulkan game to macOS in about a day by running it through MoltenVK or KosmicKrisp, which translate Vulkan calls to Metal. The developer bundles...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a59ca0901deaa25c0811895b6ca1ef0d?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a59ca0901deaa25c0811895b6ca1ef0d?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Lobsters","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Lobsters","logo":"https://media.daily.dev/image/upload/s--tl8v_Fku--/f_auto,t_logo/v1698841318/logos/lobste.jpg","url":"https://daily.dev/sources/lobsters"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/i-ported-my-vulkan-game-engine-to-macos-in-one-day-uv5z93ymm","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"game-development,mac,zig,vulkan","timeRequired":"PT13M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Lobsters","item":"https://daily.dev/sources/lobsters"},{"@type":"ListItem","position":3,"name":"I ported my Vulkan game engine to macOS in one day"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/i-ported-my-vulkan-game-engine-to-macos-in-one-day-uv5z93ymm#faq","mainEntity":[{"@type":"Question","name":"How do I make a Vulkan game run on macOS when users don't have MoltenVK installed?","acceptedAnswer":{"@type":"Answer","text":"Bundle the Vulkan SDK libraries inside the app bundle: libvulkan, libMoltenVK, libkosmickrisp and their ICD JSON files, with the JSON paths adjusted to the bundle layout. Then set SDL's SDL_HINT_VULKAN_LIBRARY to the bundled libvulkan via an @executable_path-relative path, so the loader offers MoltenVK, KosmicKrisp, or both. Developers shipping cross-platform games follow Vulkan and Metal tooling changes on daily.dev."}},{"@type":"Question","name":"Why does my Vulkan device selection find no GPU on a Mac using MoltenVK?","acceptedAnswer":{"@type":"Answer","text":"MoltenVK is a non-conformant Vulkan implementation, and non-conformant devices are not enumerated by default. Request the VK_KHR_portability_enumeration instance extension when available, and enable VK_KHR_portability_subset on the device when picking a portability device. That extension lets you query why the implementation isn't conformant. If you're debugging Vulkan on Apple hardware, daily.dev surfaces graphics-porting fixes from other developers."}},{"@type":"Question","name":"Can I build a universal macOS binary without Apple's lipo tool when cross compiling?","acceptedAnswer":{"@type":"Answer","text":"Yes. A universal binary is just per-architecture binaries glued together, and a lipo replacement is small. TigerBeetle's Zig implementation of lipo is only 81 lines. Build x86_64 and aarch64 binaries, merge them with such a tool, then assemble the app bundle. This matters because Steam doesn't distinguish x86_64 from aarch64 builds. Anyone shipping Mac builds from Linux or Windows will find cross-compilation tips on daily.dev."}}]}
```

