Fixing error: “chromedriver” cannot be opened because the developer cannot be verified. Unable to launch the chrome browser on Mac OS

Oct 09, 2020 · by Tim Kamanin

So you've installed Chromedriver on your lovely Mac, and when you try to run it, you get that pesky "“chromedriver” cannot be opened because the developer cannot be verified. Unable to launch the chrome browser" error. What do you do?

Well, my friend, you need to force Mac OS to trust the chromedriver binary.

Here's how to do this

  1. Find a path for chromedriver binary:

    bash
    which chromedriver
    


    You should get something like /usr/local/bin/chromedriver

  2. Now tell MacOS to trust this binary by lifting the quarantine via the following command:

    bash
    xattr -d com.apple.quarantine /usr/local/bin/chromedriver
    


    I wish we could do the same with COVID 😷

Now, run your test or script again, and it should be working just fine!

Want to get more 🔥 tips like this one?

Subscribe to get notified about new dev tutorials