$ 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:
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:
Password: Xcode 9.2 Build version 9C40b
$ 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
$ 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
$ sudo spctl --master-disable
$ sudo spctl --status