nxnative README

The project's README from github.com/seedds/nxnative. As one markdown file: README.md.

nxnative

Play your own Nintendo Switch and Switch 2 games natively on Apple silicon Macs, iPhone and iPad. One script packs your game into a Mac app or an unsigned IPA that you sideload.

It is not an emulator: the game's own code runs directly on the Apple chip, with Switch graphics rebuilt on Metal. Nothing from any game is in this repository, and the project is not affiliated with Nintendo or any game publisher.

Games · Community front ends · Requirements · How to play · Discussions · For developers

Games

Browse the community Game Compatibility List (source) to filter games by platform and status or check your own games folder against the expected updates.

The full tested games table includes original Switch games, tested builds, engines and graphics APIs. Each game's note records its tested platforms, progress and known issues.

These Switch 2 games have passed Mac gameplay testing. Build them from a .nup file or a dump folder:

Community front ends

Community projects build on nxnative with tools to turn your games into apps for your iPhone, iPad or Mac without the command line, and libraries to organize and launch them. They are separate projects: questions and bugs about them go to their own pages.

Requirements

The games' textures are BC-compressed, which older iPhones cannot read. Switch 2 builds are tested on the Mac; check each game's note for device-specific validation.

For a game without a profile, the script writes a survey and tries a provisional build with guessed settings. That build may not start; see Port another game.

How to play

For a Switch 2 game, follow the Switch 2 build instructions with a .nup file or a dump folder.

Build from the command line

You need a Mac with macOS 26.6 or later, Xcode 27.2, Homebrew and an arm64 build of Python 3.12 or newer. To build an IPA, install Xcode's iOS platform (Xcode → Settings → Components).

The shaders are built with Xcode 27.2's Metal compiler. Select it before step 1: sudo xcode-select -s /Applications/Xcode.app. With several Xcode versions installed, name this one Xcode-27.2.app and select it with sudo xcode-select -s /Applications/Xcode-27.2.app.

1. Install the tools (only once), in Terminal:

xcodebuild -downloadComponent MetalToolchain
git clone https://github.com/seedds/nxnative.git && cd nxnative
brew install xcodegen zstd glslang
python3 -m pip install lz4 "capstone>=5,<6" fonttools nsz zbic "backports.zstd; python_version < '3.14'"

2. Put your Switch 1 game in a folder. Include any updates and DLC you want to pack. The script reads .nsp, .xci, .nsz and .xcz files.

~/Games/MarioWonder/
  Super Mario Bros. Wonder [010015100B514000][v0].nsp
  Super Mario Bros. Wonder [010015100B514800][v327680].nsp

3. Build, with your game folder and your prod.keys:

python3 scripts/build_ipa_from_nsp.py ~/Games/MarioWonder -k ~/keys/prod.keys

For a Mac app, add --platform mac-app and open the resulting .app in Finder. By default, the script saves the IPA or Mac app in the game's folder. See The packing script in detail for all options.

The first build takes 30–60 minutes and needs about twice the game's size plus 10 GB of free disk space. Rebuilding is much faster.

Install

Install the IPA on your iPhone or iPad with a sideloading tool such as AltStore, Sideloadly or LiveContainer. If your tool offers Increased Memory Limit, turn it on: the bigger games need it.

Game too big to install? Build again with --romfs separate, and run the command the script prints once to copy the game files to your phone (Quick reinstalls). With AltServer, also add --shader-files: it cannot install a file of 2 GiB or more.

If a sideloading tool fails to extract a large IPA, try --prepare-xcode and install from Xcode.

Controls, saves and settings: Playing.

Switch 2 games

Build a Switch 2 game from one NUP container (a .nup file) or a dump folder. Both inputs work without prod.keys. If the game has no profile in this project, the script surveys it and creates a provisional profile. The resulting build may fail to boot. See Port another game.

From a .nup file, which holds the base game, its updates and DLC in one file. Give the file, or a folder that holds it:

python3 scripts/build_ipa_from_nsp.py ~/Games/DonkeyKongBananza.nup --platform mac-app

Hyrule Warriors: Age of Imprisonment is played this way: its 47 GB NUP unpacks in under five minutes. A NUP that carries the game's control data (its NACP) and icon gives the app the game's name and icon; otherwise the name comes from the game's profile and the app has no icon unless you give it one with --icon <image> (ICON in Spyder; a JPEG or PNG of any size). The script also reads NUPs with shifted metadata numbers.

A Nintendo Switch 2 Edition of a Switch 1 game can hold both of its programs in one NUP: the Switch 1 program with the game data, and the Switch 2 program, which reads that data from the Switch 1 program and its Switch 2 files from the upgrade add-on. The script packs the Switch 2 program, with the Switch 1 program's game files beside its own and the add-on as DLC; --program 0 packs the Switch 1 program instead.

A NUP without the base game can have an empty base record or omit the base record entirely. With no base record, every update must be marked standalone_update. In either case, the script reports that it is using the selected update as the whole game. That update needs a complete ExeFS and RomFS. If files are missing, pack a NUP with the base game. The script selects the newest update by default. Use --package v<N> to select another update. v0 requires a base game.

From a folder of files. The script expects this layout (updates and dlc are optional):

~/Games/DonkeyKongBananza/
  base/exefs/                     main, main.npdm, sdk, rtld
  base/romfs/
  updates/458752/exefs/           the update's version, as a decimal number
  updates/458752/romfs/           the patched RomFS, not a patch
  dlc/040074a01bf13001/0/romfs/   the DLC's title ID
python3 scripts/build_ipa_from_nsp.py ~/Games/DonkeyKongBananza --platform mac-app

You can also pass a complete update folder directly, for example ~/Games/DonkeyKongBananza/updates/458752. The script treats a folder with exefs/ and romfs/ at its root as base/, including folders made by nup extract. Use --icon <image> (ICON in Spyder) to supply an icon for the app. To turn a dump folder into a NUP, run nup pack ~/Games/DonkeyKongBananza game.nup. See The packing script in detail for more options.

Discussions

Use Discussions for questions, ideas and reports on how games run on your Mac or iPhone. File bug reports in Issues and include the log. Follow frame rate, resolution and which Macs hold 60 fps in Ocarina of Time: state on main.

Share your game's pso_user.tsv in the pinned prewarm lists discussion.

For developers

How it works · Game notes · Bring-up and debugging · Front ends · Contributing

Acknowledgements

This project is built on other people's work (licenses):

License

MIT (LICENSE). Third-party code keeps its own license (dm/third_party).

nxnative (seedds/nxnative)

Searching Database…

What is this?nxnative turns your own Nintendo Switch game files (NSP) into an unsigned IPA you can sideload onto iPhone, iPad or Mac, so the game's own code runs natively on Apple hardware with its graphics rebuilt on Metal.
Is this an emulator, like Ryujinx or yuzu?No. It is not an emulator: it rewrites the game's native code and reimplements the Horizon OS as a host, so the original Switch binary runs directly on the Apple chip instead of being interpreted.
How do I pack a game into an IPA?On a Mac with Xcode and Homebrew, get nxnative and its tools, put the game's base NSP plus its update (and DLC) in a folder, then run the packaging script; the IPA appears in that same folder.
What do I need to provide besides the Mac tooling?You need your own copy of the game's NSP files and your prod.keys; the repository itself contains no game content.
Does it work with any Switch game?Only a short list of tested games is confirmed playable; for untested titles the script tries to guess settings and may produce an IPA that doesn't even start, and you need iOS/iPadOS 26 or later.
Is sideloading required to play?Yes, the built IPA has to be installed with a sideloading tool since it isn't signed by Apple.
Does the game run on Mac too, or only iPhone/iPad?The resulting app runs natively on iPhone, iPad and Mac, though the IPA itself must be built on a Mac with Xcode first.
Which games are confirmed playable right now?Super Mario Bros. Wonder, Fire Emblem Engage, Metroid Dread, 13 Sentinels: Aegis Rim, Super Mario 3D World + Bowser's Fury, Breath of the Wild and Link's Awakening are all tested and playable; Super Mario Odyssey is still being ported.
How long does packaging take and how much disk space is needed?The first build of a game takes 30–60 minutes (later rebuilds about 10 minutes), and you need roughly twice the NSP size plus 10 GB of free disk space.
What happens to my save data if I reinstall the app?Some sideloading tools give a reinstalled app a fresh data folder, so you need to manually copy the old save/ folder and psouser.tsv over to keep your progress.
Are there any known bugs?There's no amiibo or online play support, Fire Emblem Engage can lose some sound after you switch apps and back, and Super Mario 3D World can show small magenta squares in World 1-1.
Creator
seedds
Size
332.1 MB
Stars
16.2K
Updated
CommitNov 19
Age
1mo
Commits · 90 Days