Include the Xcode package that you uploaded with Jamf Admin above I added a client-side limitation set to Do not run between 8:00 am and 11:45 pm since trying to do this when the network is busy during the day is, I think, asking for trouble! Set the policy to execute on recurring check-in and once per computer. The smart group criteria I used were: Application Title does not have Xcode AND Operating System like 12.3 (you may want to add a few more criteria since you don't want to run this on many macs at the same time. Scope the policy to a smart group to target the macs you want this to install on. )ħ) Copy that Packages created Xcode package to your Jamf Pro package repository using Jamf Admin.Ĩ) Now on your Jamf Pro server create a policy as follows: Also note that I was completely unsuccessful in multiple attempts of packaging this massive application with Jamf Composer! Xcode as it sits in /Applications is about 36 GBs and the resulting, compressed package is over 16 GBs. Double click that downloaded package to extract the Xcode application.ĥ) Move the extracted application to the /Applications folder on the test mac you setup in step #1 above.Ħ) Use Packages from WhiteBox to create a "raw" package with just Xcode in /Applicaations (Before running, make sure Packages has "Full Disk Access" in Security and Privacy System Preferences. (Only certain versions of Xcode will work on certain MacOSs so get the right version!)Ĥ) Xcode is delivered in an Apple specific package format which is no longer compatible directly with Jamf. (You probably already have this as it's incredibly useful for so many things!)Ģ) Get a Apple Developer's account (I believe a free account will work)ģ) Download the version of Xcode you want. ġ) Setup a "test" mac with similar hardware and the same MacOS that is DEP enrolled in Jamf just like your target macs. I hope this helps others navigate this challenge. This is working for me using Xcode 13.2.1 on MacOS 12.3 Monterey and Jamf Pro version 10.37.2. In case anyone else has the same need, here is the method that I've come up with. This adds some challenges to deploying Xcode as the APP store route using VPP can only install the most recent version of an app. Sudo /usr/sbin/installer -pkg /Applications/Xcode.app/Contents/Resources/Packages/CoreTypes.Since the most recent versions of Xcode are often a bit "buggy", the faculty that teach in our Computer Science labs prefer to run a slightly older version of Xcode. Sudo /usr/sbin/installer -pkg /Applications/Xcode.app/Contents/Resources/Packages/XcodeSystemResources.pkg -target / Sudo /usr/sbin/installer -pkg /Applications/Xcode.app/Contents/Resources/Packages/MobileDeviceDevelopment.pkg -target / Sudo /usr/sbin/installer -pkg /Applications/Xcode.app/Contents/Resources/Packages/MobileDevice.pkg -target / Sudo /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -license accept install embedded packages usr/sbin/DevToolsSecurity -enable accept Xcode license usr/sbin/dseditgroup -o edit -a everyone -t group _developer enable developer mode Installer -allowUntrusted -pkg "$(find $TMPMOUNT -name '*.mpkg')" -target /įi # UI NonAdmin # make sure all users on this machine are members of the _developer group # to sign the downloaded command line tools. # command to accomodate for now-expired certificates used # The "-allowUntrusted" flag has been added to the installer Hdiutil attach "$TOOLS" -mountpoint "$TMPMOUNT" -nobrowse TMPMOUNT= /usr/bin/mktemp -d /tmp/clitools.XXXX If ] thenįi Installing the latest Xcode command line tools on 10.7.x and 10.8.x on 10.7/10.8, instead of using the software update feed, the command line tools are downloaded instead from public download URLs, which can be found in the dvtdownloadableindex: Softwareupdate -i "$cmd_line_tools" -verbose # as that should be the latest Xcode command line tool installer.Ĭmd_line_tools=$(printf "$cmd_line_tools_output" | tail -1) # Check to see if the softwareupdate tool has returned more than one Xcode !/bin/bash # Xcode Command Line Tools Install # Check for current xcode command line tools and xcode cache and remove if foundĬommand_line_tools_dir="/Library/Developer/CommandLineTools"
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |