Modding:Installing SMAPI on Mac
This page explains how to install SMAPI (the tool which lets you use mods) on macOS.
See instructions for: Android • Linux • Steam Deck • Windows.
Install
Quick note: As of version 4.0.0, SMAPI uses NET 6.0, which is supported on Mac 10.15 (Catalina) or later. These instructions will fail if you're on Mac 10.12 (Sierra), Mac 10.13 (High Sierra), or 10.14 (Mohave), in which case, see: Modding:Player Guide/Troubleshooting#SMAPI doesn't work with the compatibility branch
- Download the latest version of SMAPI (see a pictorial guide).
- Extract the .zip file somewhere (but not in your game folder!).
- Right-click install on Mac.command and choose open. If you get a warning popup, proceed to the instructions outlined below in Troubleshooting.
- Follow the on-screen instructions.¹
That's it! Just launch the game to play with mods. You don't need to change your Steam launch options. (That's only needed on Windows).
¹To install manually instead, see instructions in the installer's readme.
Update
Just install the new version; the installer will automatically clean up previous versions.
Uninstall
- Launch the installer again (see install steps).
- When prompted, choose the uninstall option.
Troubleshooting
Warning message: "'install on macOS.command' Not Opened"
This message means that macOS blocked the installation because it cannot verify if SMAPI is safe. To bypass, you will need to manually approve in System Settings.
- Click on the "Done" button in the warning message.
- Open System Settings
- Navigate to "Privacy & Security" — scroll down until you find the "Security" section. You should have a notice that "'install on macOS.command' was blocked to protect your Mac." Click on the "Open Anyway" button.
- Another warning will pop up with the same statement. Click on the "Open Anyway" option, and you will be prompted to enter your password.
- Enter password and the installer should start running.
For a pictorial guide, see Modding:Installing_SMAPI_on_Mac_Pictorial_Guide#Install_SMAPI.
Error message: "Malware blocked and moved to trash"
This means macOS blocked SMAPI because it isn't signed with a paid Apple code signing certificate.
SMAPI does not contain malware. The error is due to new security restrictions on macOS that we're investigating. All new builds are detected as malware, even if they're identical to previously working versions. Note that all files on Nexus are scanned by 65 different antiviruses; you can click the green checkmarks on SMAPI's Nexus download page for the results.
Temporary workaround for affected players:
- Install SMAPI 4.1.7 instead. From the Files tab on Nexus, look under 'Optional files' for a download.
- From Spotlight, open the Terminal app.
- Enter this command for the Steam version of the game:
codesign --force --sign - "Library/Application Support/Steam/steamapps/common/Stardew Valley/Contents/MacOS/StardewModdingAPI"
Or this one for the GOG version:
codesign --force --sign - "/Applications/Stardew Valley.app/Contents/MacOS/StardewModdingAPI"
- Make sure both commands output nothing. If they show an error message, resolve the error or ask for help.
(This only 'signs' SMAPI so it can be played, it does not disable security or antivirus checks.)
Error message: "Operation not permitted: 'internal'"
To fix that error:
- Open System Preferences.
- Go to "Security and Privacy" and then the "Privacy" tab.
- Scroll down to "Full Disk Access".
- Click the lock button to make changes.
- Use the
+button to add Terminal to the list of apps.- Try again to run install on MacOS.command.
Can't launch installer on Ventura
Common solutions:
- Install iTerm and set it to be your default Terminal.
- Or temporarily disable System Integrity Protection. This isn't a great solution because it leaves your computer vulnerable, and you absolutely shouldn't leave your computer in this state.
Other issues
- See the troubleshooting page for general troubleshooting.
Compile from source
If the codesign instructions above do not work you might need to recompile the source locally and overwrite the install of SMAPI. These instructions are written for a Steam install. Paths need to be adjusted for other install locations.
- Force quit Steam
- Download and install SMAPI 4.1.9 normally
- Download the source code .tar.gz from github (Download from GitHub) and save to /Users/$USER/Downloads
- Open it to extract all files
- Open a terminal
- Run:
/bin/bash -c "$(curl -fsSL )" *LINK REMOVED*
brew install --cask dotnet-sdk
cd /Users/$USER/Downloads/SMAPI-4.1.9/build/unix
- edit prepare-install-package.sh in your favorite text editor (We used vim)
- add a # at the beginning of line 15 (this effectively removes the existing line 15)
- add the following right after (new line 16):
- Run:
./prepare-install-package.sh 4.1.9
sudo cp /Users/$USER/Downloads/SMAPI-4.1.9/src/SMAPI.Installer/bin/Release/win-x64/SMAPI.* /Users/$USER/Library/Application\ Support/Steam/steamapps/common/Stardew\ Valley/Contents/MacOS**/**
- Launch steam and run SDV