xcpretty / xcode-install

🔽 Install and update your Xcodes
https://fastlane.tools
MIT License
2.59k stars 239 forks source link

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

Open americanhanko opened 6 years ago

americanhanko commented 6 years ago

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


2. 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


3. 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