Skip to main content
Question

Deploy Xcode 6.1 via Self Service

  • October 26, 2014
  • 8 replies
  • 33 views

Caminiti
Forum|alt.badge.img+5

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

8 replies

Forum|alt.badge.img+23
  • Esteemed Contributor
  • 850 replies
  • October 26, 2014

Paging @rtrouton ...

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


Forum|alt.badge.img+31
  • Hall of Fame
  • 920 replies
  • October 26, 2014

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_scripts

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


elliotjordan
Forum|alt.badge.img+12
  • Valued Contributor
  • 143 replies
  • January 29, 2015

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


ImAMacGuy
Forum|alt.badge.img+23
  • Esteemed Contributor
  • 1310 replies
  • March 12, 2015

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

What about attaching your CLI installer script?


Forum|alt.badge.img+31
  • Hall of Fame
  • 920 replies
  • March 12, 2015

@jwojda,

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


Forum|alt.badge.img+31
  • Hall of Fame
  • 920 replies
  • March 12, 2015

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-mavericks/


ImAMacGuy
Forum|alt.badge.img+23
  • Esteemed Contributor
  • 1310 replies
  • March 12, 2015

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


Forum|alt.badge.img+31
  • Hall of Fame
  • 920 replies
  • March 12, 2015

@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_tools