justingardner / mgl

A suite of mex/m files for displaying psychophysics stimuli
http://justingardner.net/mgl
Other
18 stars 22 forks source link

mglMetal doesn't open a screen #58

Closed jiwonyeon closed 1 year ago

jiwonyeon commented 2 years ago

The machine I've tested is on Monterey 12.3.1 (iMac; Balvanie). When I downloaded mglMetal and tried to open a screen, the computer recognized MGL as malicious software and did not open a screen. Basically it seems. like it recognized all files with "mexmaci.64" extension as malicious, and even though I asked it to open it anyway it failed to open since there are multiple files with the same extension. I'm attaching an example screen shot of the issue.

Screen Shot 2022-05-09 at 5 41 11 PM
benjamin-heasly commented 2 years ago

Huh, I don't think we encounter this issue when downloading via git so I wonder if Safari flags the download somehow.

I'm not sure we can address this as a coding issue, it seems inherent with the way we distribute binaries as part of MGL, and the way macOS is trying to be tighter about security (generally a good idea!).

We might need to address this as a sys admin issue, perhaps along the lines of this blog post.

justingardner commented 2 years ago

Seems to work by disabling gate-keeper. Though this is probably not super-ideal either. Ben, can you sign the mglMetal app and compiled functions using XCode: https://developer.apple.com/developer-id/ (might still need to get them "notarized", but this seems like a step we may need to do to avoid this issue...

justingardner commented 1 year ago

Closing this as it hasn't been happening recently, so seems resolved if you use git clone to get the repo.