How to share compiled mex files as a verified apple developer?

2 views (last 30 days)
I work for an educational institition that shares Matlab code with the general public. Some of the code we share are compiled mex files.
On mac, for a user to run a compiled mex file, they need to allow each file to run. Many of our scripts call multiple mex files and this get annoying for users.
Our institution has a apple developer account and we want to sign our code so that compiled code is trusted but do not know how to do this. Any help?
  2 Comments
Rik
Rik on 28 Sep 2022
I don't recall such a dialog window when calling a compiled mex file from normal Matlab code. Is this a side-effect of packaging to a standalone executable?
If you don't get a response here, you may want to reach out to support directly, as the volunteers mainly answering the questions might not know.
Jacob Honer
Jacob Honer on 28 Sep 2022
Hello Rik,
Thank you for the response, I have contacted Matlab support. I am compiling code that is essentially a compiled library for other people to use. Mac requires compiled code to be notarized, I have learned, otherwise the user has to go into their device settings and allow each un-notatized compiled file to run individually. This is very tedous in our case, otherwise I wouldn't worry about it.
Matlab support provided me with the following link:
which appears to be a good start, but I am having issues signing the app. When I sign my code, I am getting:
Warning: unable to build chain to self-signed root for signer "<my signing name>"
We will see if I am able to get things sorted out. I am on the right track with the above link, but still having difficulties.
I'll try and keep people posted in case someone else has this issue.

Sign in to comment.

Answers (0)

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!