we have followed this example to add a C++ library to our plugin. So far so good, on the machine we build the plugin it works fine and is properly loaded from Rhino.
When we package the plugin to distribute it on other machines then it does not work. We sign and submit the library for notarization to avoid issues with Apple’s gatekeeper but it still does not load into Rhino. Do you have any suggestion to fix this problem?
One thing to keep in mind that there are two types of Macs: Intel and Silicon. So when you build your dylib you must do so as a universal binary - on that support both platforms.
Also, make sure your C# plug-in is build as “AnyCPU”. If you build as 'x64" it won’t load on Silicon-based Macs.
Your welcome to review the Vectorize project, which builds an interop DLL/dylib. Note, I don’t do any digital signing/gatekeeper hoo-ha to get this to work on Macs.
we made it work. It is unfortunate that there are no warning whatsoever on the mac version of Rhino unlike the Windows’ version messages that are very detailed and greatly help the debugging.