![cannot download xcode 8.2 cannot download xcode 8.2](https://i.stack.imgur.com/7AIoe.png)
![cannot download xcode 8.2 cannot download xcode 8.2](https://qph.cf2.quoracdn.net/main-thumb-49635492-200-rnwrqcmlqwpbdhlwouptetgufjvtxmem.jpeg)
Xcode_build_number=`/usr/bin/defaults read "/Applications/Xcode.app/Contents/Resources/"LicenseInfo licenseID` Xcode_version_number=`/usr/bin/defaults read "/Applications/Xcode.app/Contents/"Info CFBundleShortVersionString` For more details on this, see Tim Sutton's post: # Just in case the xcodebuild command above fails to accept the EULA, set the license acceptance info "/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild" -license accept You may want to customize the script for your environment (we don't disable the Gatekeeper validation, and our users are already developers, nor do we have multiple versions of Xcode installed, so those line-items are disabled, but it's your call): #!/bin/bash
#CANNOT DOWNLOAD XCODE 8.2 INSTALL#
Wanted to offer Xcode 8 (requires OS X 10.11.5 or later) to our user population via Self Service.ĭownloaded the Xcode 8 installation package from the App Store using the App Store Capture Methodology (yes, VPP would be better), described at:Īdded the 4.43GB installation package to the JSS, created a Self Service policy to install it, and used this script below (set to Run After) to handle all of the post-installation processing (so that users are not prompted for admin credentials). Worked this out with based on both his installation script as well as the one located at