Cvx installation error: Invalid Mex file

See @Michal_Adamaszek’s answer at Installing CVX on Mac new with M1 chip .