Resolve MacOS 'cannot be opened because the developer cannot be verified' error
- Run the binary. You should see
Killed: 9
as output in the terminal. - Once the error happens, open the "Security & Privacy" control panel from System Preferences.
- The
Security & Privacy
panel,General
tab is updated with the info that the binary was prevented from running. ClickAllow Anyway
. - Run the binary again. This time a different prompt is shown. Click
Open
- the binary should run as you expect.