GitHub Open Source
1.98K subscribers
3.13K photos
3.38K links
๐ŸŒŸ GitHub Open Source ๐ŸŒŸ

Discover fascinating projects from GitHub! We curate the best repositories, highlight innovative ideas, and share tips for developers. Join us to explore hidden gems and fuel your tech passion! ๐Ÿš€
Download Telegram
๐Ÿš€ nxnative ยท ๐Ÿ“ฆ seedds/nxnative
Run Switch games natively on Apple Silicon by rewriting NSO binaries to Metal, bypassing emulation overhead entirely.
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
โญ 16 716 stars ยท ๐Ÿด 3 094 forks
๐Ÿ’ป Objective-C ยท ๐Ÿ“œ MIT ยท ๐ŸŸข commit today
๐Ÿ‘ฅ 26 contributors

You are staring at your Mac, trying to get a game running, but the emulator is eating 80% of your CPU while the GPU struggles to keep up with the translation layer.

Emulation is a resource hog; you are paying for the abstraction layer in heat, battery drain, and dropped frames, even when the underlying game logic is simple enough that it should run easily on your M-series chip.

This project ditches the emulator entirely, rewriting the game's binaries to talk to Metal directly, which finally lets the game run as a native process on your hardware.

๐Ÿงญ How it works
This project functions as a rewriter rather than an emulator, taking Nintendo Switch game files and converting their internal NSO binaries to execute directly on Apple Silicon. It maps the game's original NVN graphics calls to Metal, allowing the game code to run as a native process on your hardware.

The result is a standalone .app or .ipa file that executes the game logic directly on the host chip.

โœจ Key features
โ–ธ Converts Switch NSO binaries to native Apple Silicon code instead of emulating them.
โ–ธ Translates NVN graphics commands directly to Metal for hardware-accelerated rendering.
โ–ธ Packages games as standard macOS apps or sideloadable iOS IPAs.
โ–ธ Supports Switch 2 NUP container files for streamlined game builds.
โ–ธ Includes build options for memory-constrained devices like iPhones.

๐ŸŽฏ Who should try it
Developers and enthusiasts with Apple Silicon hardware who want to experiment with native game porting.

๐Ÿ“Œ Why it matters now
The maturity of Apple Silicon and Metal now makes it viable to run Switch-native code directly on Apple hardware without the heavy overhead of traditional emulation.

โœ… Verdict
It is an impressive technical feat that effectively turns your Mac into a Switch dev kit, but expect to spend time debugging build configurations for specific titles.

๐Ÿš€ Quick start
python3 scripts/build_ipa_from_nsp.py ~/Games/MarioWonder -k ~/keys/prod.keys

โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
๐Ÿ’ฌ Your take?
If you could port one Switch title to run natively on your Mac today, which one would you pick?
๐Ÿ”– Save it for later โ€” and drop your use case in the comments.

๐Ÿ”— GitHub repository
๐Ÿ“– Full breakdown

๐Ÿ“ฃ @GitHub_Open_Source โ€” daily open-source picks

========================================
#opensource #objc #devtools