Important: If you have more than one version of Maya installed, only set these variables in the terminal window where you will be running your application. Setting them in your .bash_profiles file can result in a conflict with other versions of Maya that are installed on your system.
To run a standalone application on macOS from a terminal window, set the following enviroment variables:
export MAYA_LOCATION=/Applications/Autodesk/<maya_version>/Maya.app/Contents export DYLD_LIBRARY_PATH=$MAYA_LOCATION/MacOS export DYLD_FRAMEWORK_PATH=$MAYA_LOCATION/Frameworks