Deploy Xcode 6.1 via Self Service

Caminiti
New Contributor

Has anyone had success getting xCode installed via Self Service when the end user does not have local admin access?

8 REPLIES 8

franton
Valued Contributor III

Paging @rtrouton ...

It has been done in the past for Xcode 5. I'd imagine its possible with the same techniques for 6.

rtrouton
Release Candidate Programs Tester

I've been downloading an Xcode 6.1 installer using the technique described here:

http://derflounder.wordpress.com/2013/08/22/downloading-apples-server-app-installer-package/

Once I have that installer, I have it associated with an installation policy, then make that policy available in Self Service for my users.

I'm using the following scripts as Before and After scripts:

https://github.com/rtrouton/rtrouton_scripts/tree/master/rtrouton_scripts/Casper_Scripts/xcode_scrip...

I set xcode_uninstall.sh as the Before script and xcode_post_install.sh as the After script.

elliotjordan
Contributor III

Chiming in here to thank @rtrouton for the detailed and helpful write-up as usual!

jwojda
Valued Contributor II

@rtrouton can this be included as a pre/post install script to the package?

What about attaching your CLI installer script?

rtrouton
Release Candidate Programs Tester

@jwojda,

I'm not certain what you're asking for. Could you be more specific?

rtrouton
Release Candidate Programs Tester

Installing the Xcode Command Line Tools separately shouldn't be necessary if you're installing Xcode. The needed tools are included as part of a normal Xcode installation. For more information on this, see this post:

https://derflounder.wordpress.com/2013/11/15/xcode-command-line-tools-included-with-xcode-5-0-x-on-m...

jwojda
Valued Contributor II

Sorry, yes - I often forget that others can't see my screen or be inside my head to understand what I'm talking about. Anyway - almost all of our Xcode Dev's want the CLI, so I try to just bundle it in there with them. I was browsing your blog and saw this

rtrouton
Release Candidate Programs Tester

@jwojda, Sure, the script you linked to should work to install the Xcode Command Line Tools:

https://github.com/rtrouton/rtrouton_scripts/tree/master/rtrouton_scripts/install_xcode_command_line...