Building SuperCollider (and plugins) on Mac M1

Generally, it should be enough to do add -D CMAKE_OSX_ARCHITECTURES="x86_64;arm64" to the cmake configure step (e.g. cmake -G Xcode -D CMAKE_OSX_ARCHITECTURES="x86_64;arm64" ..)

Also, github actions for sc3-plugins now builds a universal binary. It will be released in 3.13, for now you can download it from github actions, e.g. https://github.com/supercollider/sc3-plugins/actions/runs/3034431991
One caveat is that you need to manually un-quarantine these plugins…

I used a following script for that

#!/bin/sh

PLUGINS_PATH="/Users/user/Library/Application Support/SuperCollider/Extensions/SC3Plugins"

find "$PLUGINS_PATH" -print0 | while IFS= read -r -d '' file
do
    if [[ -f "$file" ]] && [[ "$file" == *".scx" ]]; then
        basename=$(basename -- "$file")
        echo "un-quarantining ${basename}"
        xattr -rd com.apple.quarantine "$file"

    fi
done

You can save this as unquarantine.sh, make it executable and then run it. Make sure to update PLUGINS_PATH.

4 Likes