Cycling74 / min-devkit

Tools, documentation, and reference implementation of a Max Package built using the Min-API.
MIT License
156 stars 30 forks source link

min.*: cannot be loaded due to system security policy on Apple Silicon #200

Closed caillonantoine closed 2 years ago

caillonantoine commented 2 years ago

Building the min externals on a MacBook Pro (13-inch, M1, 2020) works ok, but loading any of them in max results in the following error:

image

I've tried several workarounds, including this one, without success.

caillonantoine commented 2 years ago

However building min.* using rosetta works fine, without any extra step ! It seems that it is a Silicon specific problem !

jeremybernstein commented 2 years ago

this is most likely due the the silicon requirement for code signing (even ad hoc code signing). If you codesign --force --deep -s - myobject.mxo, before attempting to load it in Max, does it work?

caillonantoine commented 2 years ago

It does work ! Should I consider this method the "way to go" or will there be an official workaround ? Thanks again !

jeremybernstein commented 2 years ago

We may add something to the cmake process, but this is an Apple change, not a Max change, and users of our SDKs will need to keep apprised of changes to the Apple ecosystem and adapt accordingly. We'll help where we can, of course.