Red Hat OpenShift 4

I recently decided to use my macOS machine to create a Red Hat OpenShift cluster. After downloading the openshift-install command-line tool and running it, however, I received the error shown in Figure 1.

macOS error message: "oc" can't be opened because it was not downloaded from the App Store.
Figure 1: The app can't be opened because it was not downloaded from the App Store.

 

(Yes, I know the above error is related to the oc command, but it also threw the error and, after I fixed the openshift-install command, I was unable to "unfix" it.)

Inside talk

This error is thrown by the macOS "Gatekeeper" subsystem, which checks to make sure executables are notarized by the builder. Any app that is downloaded from the App Store must first be notarized. Apps are that not installed via the App Store might still be notarized by the developer — that's a choice they make. However, un-notarized applications will throw this error, and you are stopped.

The answer

The answer is quite simple: Find the application in Finder, right-click on it, and select Open. It will display a dialog box like the one shown in Figure 2.

macOS warning message: macOS cannot verify the developer of "oc". Are you sure you want to open it?
Figure 2: macOS cannot verify the developer of "oc". Are you sure you want to open it?

 

Simply click the Open button, and the app will be regarded as safe. You can now execute it from the command line with no problems.

Last updated: September 19, 2023