I had the exact same issue. "Unable to locate companion shared library" when generating code in CubeMX on MacOS.Turns out the latest version of CubeMX is just flat out broken. Downgraded two versions back and it works fine.Incidentally, the latest ve...