xcode-install icon indicating copy to clipboard operation
xcode-install copied to clipboard

Xcode 9.2 fails to complete installation, requires Gatekeeper to be disabled

Open americanhanko opened this issue 8 years ago • 0 comments

This issue is the cause of #251

Xcode 9.2 has been failing to complete installation on Virtual Machines and bare metal. This has been tested on macOS 10.12.6 and 10.13.1

The following examples are from macOS 10.12.6:

  1. Gatekeeper enabled - Xcode 9.2 required two administrator password entries
$ xcversion install '9.2'
...
Please authenticate for Xcode installation.
Password:
/Applications/Xcode-9.2.app: accepted
source=Apple System

Password:
Xcode 9.2
Build version 9C40b
  1. Gatekeeper enabled - Xcode 9.1 requires one administrator password entry
$ xcversion install '9.1'
...
Please authenticate for Xcode installation.
Password:
/Applications/Xcode-9.1.app: accepted
source=Apple System

Xcode 9.1
Build version 9B55
  1. Gatekeeper disabled - Xcode 9.2 requires one administrator password entry:
$ xcversion install '9.2'
...
Please authenticate for Xcode installation.
Password:
/Applications/Xcode-9.2.app: accepted
source=Apple System
override=security disabled

Xcode 9.2
Build version 9C40b

Notice the override=security disabled line in the output.


Once Gatekeeper was disabled, Xcode 9.2. installed successfully on macOS 10.12.6 and 10.13.1

This can be done via the command line with:

$ sudo spctl --master-disable

and status can be checked with:

$ sudo spctl --status

americanhanko avatar Dec 08 '17 00:12 americanhanko