title: Chromedriver can’t be opened because Apple cannot check it for malicious software
body: <p><strong>Environment:</strong> <br/>
  OS : Big Sur 11.1 <br/>
  Homebrew 3.2.13 <br/>
  Python 3.9.7</p>
  <p><strong>Command:</strong> <br/>
  <code>chromedriver —version</code></p>
  <p><strong>Error GUI Alert:</strong> <br/>
  <a href="https://i.stack.imgur.com/KznLM.png" rel="noreferrer"><img src="https://i.stack.imgur.com/KznLM.png" alt="enter image description here" /></a>￼</p>
  <p><strong>Error via output of .py file attempt to run chromedriver:</strong> <br/>
  <code>raise WebDriverException(selenium.common.exceptions.WebDriverException: Message: Service /opt/homebrew/bin/chromedriver unexpectedly exited. Status code was: -9</code></p>
  <hr/>
  <h4>Fix Method (1)</h4>
  <p>As stated in the alert, try updating chromedriver:</p>
  <p><em>Uninstall the current version:</em><br/>
  <code>brew uninstall chromedriver</code></p>
  <p><em>Verify that chromedriver is uninstalled:</em><br/>
  <code>brew info chromedriver</code></p>
  <p><em>Install the newest version of chromedriver:</em><br/>
  <code>brew install chromedriver</code></p>
  <p><em>You can also try:</em><br/>
  <code>brew reinstall chromedriver</code></p>
  <h4>Fix Method (2) : Still Stuck</h4>
  <p>If you are still experiencing the issue, this fix helped me.</p>
  <p><em>Determine which chromedriver is being used, run:</em><br/>
  <code>which chromedriver</code></p>
  <p><em>Result :</em><br/>
  <code>/opt/homebrew/bin/chromedriver</code></p>
  <p><em>Use the path to chromedriver in the following command to unblock it.</em> <br/>
  <code>xattr -d com.apple.quarantine /opt/homebrew/bin/chromedriver</code></p>
  <p><em>Now run the following:</em><br/>
  <code>chromedriver —version</code></p>
  <p>Result :
  <code>ChromeDriver 93.0.4577.63 </code></p>
  <p>Chromedriver should successfully execute.</p>
  <p><strong>Reference</strong> <br/>
  <a href="https://stackoverflow.com/users/837638/coorasse">coorasse</a>'s <a href="https://stackoverflow.com/questions/48513369/cant-update-chromedriver-in-macos10-12-6">answer</a>.</p>