macOS: full support — MoltenVK auto-discovery, portability fix, and KytyPS5.app bundle #394
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!394
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/394/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@nacimoualla on GitHub · 2026-08-29 11:46 UTC · original
nacimoualla:macos/full-support→main· +155 −32 · 6 files · 7 commits · merged 2026-08-29 13:08 UTCSummary
This PR brings macOS from experimental to first-class by fixing three long-standing papercuts and adding a proper application bundle. The emulator continues to target x86-64 under Rosetta 2 (guest JIT, zerofill guest address space), now with automatic MoltenVK discovery and a double-clickable app.
Commits:
macOS: auto-discover bundled MoltenVK on startup (
ae112b9→85a5c04)libMoltenVK.dylibnext to the executable was invisible under the hardened runtime.SDL_GetBasePath() + "libMoltenVK.dylib"before falling back to SDL's default search. RespectsSDL_VULKAN_LIBRARYoverrides and logs which loader is used. No error if the bundled file is missing — falls back to system loader.README.mdto remove the manualSDL_VULKAN_LIBRARY="$PWD/libMoltenVK.dylib"requirement.window: fix Vulkan portability enumeration on macOS (
996c377→6b8adb5)VK_KHR_portability_enumeration+VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHRto surface portability devices. Without the flagvkEnumeratePhysicalDeviceshides the MoltenVK adapter on some drivers, causing "Could not find suitable device".otool -landcodesign --verifyon Apple Silicon.macOS: add KytyPS5.app bundle packaging (
ba6c251→f294799)src/launcher/Info.plist.in+src/launcher/CMakeLists.txt: launcher becomesKytyPS5.app(CFBundleIdentifier org.kytyps5.kytyps5,LSMinimumSystemVersion 13.0) withkyty_emulatoras helper inContents/MacOS(found viaQCoreApplication::applicationDirPath()). MoltenVK is found viaSDL_GetBasePath()in that directory.src/macos_jit.entitlements) inside the bundle and invokemacdeployqtwhen available to deploy Qt frameworks toContents/Frameworks.kyty_emulatorfor CLI usage..github/workflows/build.yml: bundle MoltenVK intoKytyPS5.app/Contents/MacOSwhen present, verify bundle artifacts (file/lipo/codesignfor both flat and bundle), and handle bundle paths in the release zip.README.md: documentopen _Build/macos/install/KytyPS5.appand bundle MoltenVK locations.launcher: fix bundle rpath for Qt frameworks (
7e61b97→6155ce8)@rpathreferences to Qt frameworks but noLC_RPATH, causing dyld abort:Library not loaded: @rpath/QtConcurrent.framework, Reason: no LC_RPATH's found(see crash reportKytyPS5[57276],Mac16,12,macOS 26.2).INSTALL_RPATH "@executable_path/../Frameworks"andBUILD_WITH_INSTALL_RPATHso the built and installed bundles resolve Qt fromContents/Frameworks. Verified viaotool -l | grep LC_RPATHandmacdeployqtnow succeeds.Testing
fileshowsMach-O x86_64forKytyPS5/kyty_emulator,lipo -verify_arch x86_64passes,codesign --verify --strictpasses for helper, bundle, andlibMoltenVK.dylib(universalx86_64+arm64),otool -lshowsLC_RPATH @executable_path/../Frameworks.open _Build/macos/install/KytyPS5.applaunches GUI (previously crashed withDYLD Library missing). Flatkyty_emulator --gamefinds bundledlibMoltenVK.dylibwithoutSDL_VULKAN_LIBRARY.ctest -R virtual_memory_allocationpasses onmacos_x86.Notes
-DCMAKE_OSX_ARCHITECTURES=x86_64; official Qt universal is required (README already documents this).page_manager_tests/memory_tracker_testsuseMAP_FIXED_NOREPLACE(Linux-only) and are intentionally not built on macOS.#if defined(__APPLE__)orif(APPLE)).AI disclosure
AI tools were used for research and drafting. All code was reviewed, built, and tested locally on Apple Silicon (M4, macOS 26.2) under Rosetta 2 as described above. The contributor understands and is responsible for the correctness of the changes.
@Nmzik on GitHub · 2026-08-29 12:54 UTC · original · edited 2026-08-29 12:55 UTC
@nacimoualla I cleaned it up a bit. Please pull the latest changes and check them locally. CI is good. Im ready to merge as soon as everything looks good on your side
@nacimoualla on GitHub · 2026-08-29 12:59 UTC · original
@Nmzik Hi thanks for your changes but can I ask you if you can make this branch because Mac support need a lot of work
@Nmzik on GitHub · 2026-08-29 13:03 UTC · original · edited 2026-08-29 13:04 UTC
@nacimoualla Please stop. Don’t make any more commits for now.
I understand that macOS requires some additional changes, but let’s split things up first. Please check the current changes in this PR by pulling my fixes.
Your renderer fixes should go into a separate PR later, so please keep those changes separate for now.
For now, only pull the latest changes (don’t push anything) and test locally on your Mac to see if the launcher is working.
@nacimoualla on GitHub · 2026-08-29 13:05 UTC · original
@Nmzik yes and sorry for this error I did revert all the changes that I made after you now it's clean
@Nmzik on GitHub · 2026-08-29 13:07 UTC · original
@nacimoualla launcher is working on your Mac with all changes in PR? Can you confirm?
@nacimoualla on GitHub · 2026-08-29 13:07 UTC · original
yes it work natively on apple silicon chip m4
@Nmzik on GitHub · 2026-08-29 13:09 UTC · original
@nacimoualla Super, I merged it. Now please create a separate PR with the renderer fixes.
Please keep your changes small, compact, and simple. I’ll be happy to accept them.