This is a problem of the Gatekeeper in macOS. What I did is that I go to System Preferences/Security & Privacy and then check the option “Anywhere” in “Allow apps downloaded from”. (Follow the following link to do the setting. http://osxdaily.com/2016/09/27/allow-apps-from-anywhere-macos-gatekeeper/ )Then everything gets fine.