1) First of all open this link on your Mac using any browser except Safari.
2) Now press on blue "Download" button.
3) After the file downloaded, open it to start the installation.
4) Now you need to do a simple installation.
After installation is complete, open that program which gives you an error before, for me it is PhpStorm. And you can see that program is opening without any problem.