Easy Spin with Mac

General forum for EasySpin: questions, how to's, etc.
Post Reply
kcolayco
Newbie
Posts: 1
Joined: Fri May 23, 2025 4:44 am

Easy Spin with Mac

Post by kcolayco »

I am using Mac as of the moment and using Easy Spin for Matlab. Upon setting the path(easy spin version 6.0.6) and uploading template and running it, this is showing please see attachment.
this is also on the command window info:
Invalid MEX-file '/Users/katherinecolayco/Desktop/Software/easyspin-6.0.6/easyspin/private/lisum1i.mexmaci64':
dlopen(/Users/katherinecolayco/Desktop/Software/easyspin-6.0.6/easyspin/private/lisum1i.mexmaci64, 0x0006): tried:
'/Users/katherinecolayco/Desktop/Software/easyspin-6.0.6/easyspin/private/lisum1i.mexmaci64' (code signature in
<07BD334E-7CE6-3F9E-8558-EECF58F30796> '/Users/katherinecolayco/Desktop/Software/easyspin-6.0.6/easyspin/private/lisum1i.mexmaci64' not
valid for use in process: library load disallowed by system policy),
'/System/Volumes/Preboot/Cryptexes/OS/Users/katherinecolayco/Desktop/Software/easyspin-6.0.6/easyspin/private/lisum1i.mexmaci64' (no such
file), '/Users/katherinecolayco/Desktop/Software/easyspin-6.0.6/easyspin/private/lisum1i.mexmaci64' (code signature in
<07BD334E-7CE6-3F9E-8558-EECF58F30796> '/Users/katherinecolayco/Desktop/Software/easyspin-6.0.6/easyspin/private/lisum1i.mexmaci64' not
valid for use in process: library load disallowed by system policy)

Error in pepper

Error in compisoloop

Error in pepper

Error in TRSSA_Y_simulate (line 104)
[F,int] = pepper(Sys,Exp,Opt); % defines field and intensities as two rows
^^^^^^^^^^^^^^^^^^^

I'm just really confused and need help on this. Since I cannot use windows, wherein I am using Mac.
Thank yoy!

Attachments
Screenshot 2025-05-23 at 13.46.59.png
Screenshot 2025-05-23 at 13.46.59.png (834.65 KiB) Viewed 174 times
tec000
Newbie
Posts: 7
Joined: Fri May 03, 2024 9:38 am

Re: Easy Spin with Mac

Post by tec000 »

You might need to recompile the mex files, see the Compiling mex files section in https://easyspin.org/easyspin/documenta ... ation.html.

Stefan Stoll
EasySpin Creator
Posts: 1136
Joined: Mon Jul 21, 2014 10:11 pm
Location: University of Washington

Re: Easy Spin with Mac

Post by Stefan Stoll »

I myself don't have a Mac, so I am unable to reproduce this. Googling shows that there are several ways to circumvent this.

MacOS adds a com.apple.quarantine attribute to executable files downloaded from the internet. The error message is shown because the file has this attribute.

You can use the command xattr to delete the com.apple.quarantine attribute:

Code: Select all

xattr -d com.apple.quarantine lisum1i.mexmaci64

You need to be in the correct folder, or provide the full path.

Please let the forum know whether this worked.

Post Reply