6

We recently upgraded our macmini from MacOS High Sierra to MacOS Catalina in order to compile with the latest Xcode. The macmini is a buildslave for continuous integration. After upgrading to Catalina I noticed the machine became very slow during git checkout of thousand of files due to the apples built-in anti-malware service "XProtectService".

We don't need the anti-malware service for CI as it slows down the compile process and no user will use the machine to download harmful files.

How can the XProtectService disabled?

Paul Kiman
  • 61
  • 1
  • 2
  • 2
  • 3
    Try rebooting your Catalina Mac in Recovery mode (cmd-R during boot). Then do a csrutil disable , and reboot again. Caveat Emptor and check all your firewalls. – hotpaw2 Oct 15 '19 at 15:17
  • 1
    @hotpaw2 this worked for me, you should make it an answer and get some credit. =) – Chris Vasselli Dec 13 '19 at 18:35

1 Answers1

1

As said in the comments, you can disable XProtectService by rebooting in Recovery mode (cmd-R during boot) and running:

csrutil disable

but beware that this will disable the whole System Integrity Protection. Here is an Apple article: Disabling and Enabling System Integrity Protection, describing this procedure and providing the following warning:

Warning

Disable SIP only temporarily to perform necessary tasks, and reenable it as soon as possible. Failure to reenable SIP when you are done testing leaves your computer vulnerable to malicious code.

Ortomala Lokni
  • 56,620
  • 24
  • 188
  • 240