Dear Sir or Madam,
I used CVX several times successfully several months ago. But today I tried to use CVX to solve a convex minimization problem. Unfortunately, when I try to use it, I got the notice below from my mac.
“gurobi.mexmaci64” cannot be opened because the developer cannot be verified
So I have to move that file to Trash. I tried to delete all CVX files in my mac and download a new CVX from your website http://cvxr.com/cvx/download/ again. But the same problem occurs again.
Could you please tell me why I got this problem? How to avoid this problem?
I appreciate any help in advance.
I have no idea what’s going on, but the first thing to verify is that Gurobi operates on that machine under MATLAB, using that mex file, without use of CVX. If not, then resolve that first.
Maybe I figured out this problem.
I think this is a problem from the Gatekeeper in macOS. I am busing in my other work. I will share how I figured out this problem with you later.
This is a problem of the Gatekeeper in macOS. What I did is that I go to System Preferences/Security & Privacy and then check the option “Anywhere” in “Allow apps downloaded from”. (Follow the following link to do the setting. http://osxdaily.com/2016/09/27/allow-apps-from-anywhere-macos-gatekeeper/ )Then everything gets fine.
The spctl --add worked well. Just for a further helpful tip, because it can be tedious to track down all the offenders, you can use it in combination with “find”, recursively, which let you handle all the potential problems at once. Go to a directory that contains all the possible MEX files you might need to run, and type:
find . -name “.mex” -exec spctl --add {} ;
I didn’t have to do the same with dylib files so far, but you can just rerun with the appropriate wildcard if necessary. While searching through all the scripts, MacOS had me enter the system login and password 5 or 6 times, but eventually it finished.