homebrew install ChromeDriver not working in M1 Mac

I was trying selenium and I have installed chromedriver using home-brew. However, I could not execute the driver(block by Apple). Here is how to solve the issue. I’m using a Mac with M1 chip thought that should be irrelevant.

The error should look something like this.

The solution is simple, just type the command below.

xattr -d com.apple.quarantine <Path of chromedriver>

xattr is an utility to display and manipulate extended attributes. In this case the attribute is “com.apple.quarantine” which was added in OSX 10.5.

Program with this attribute ask for user confirmation the first time the downloaded program is run, to help stop malware. Upon confirmation the attribute should be removed automatically, and then the program will run normally.

However, in chromedriver case, we could not run it by right click and select run. So we have to remove the attribute manually.

Here is an online man page if you would like to know more about xattr. Or you can use built in man page.

https://ss64.com/mac/xattr.html

Leave a comment

Your email address will not be published. Required fields are marked *