Skip to main content
Solved

Packaging XCode 7.2 Drag and Drop

  • February 17, 2016
  • 6 replies
  • 26 views

rqomsiya
Forum|alt.badge.img+12

Hi all,

Due to Apple's certs expiring, i've been having issues packaging the new drag and drop method for XCode. Any thoughts? Just composer I guess?

Best answer by rqomsiya

Found this link from @rtrouton. Looks like if i download it from the MAS it will download in .pkg format. I have the post-install scripts already. Thanks for the replies and help! Much appreciated!

https://derflounder.wordpress.com/2016/02/15/certificate-expiration-and-downloaded-mac-app-store-installers/

6 replies

Forum|alt.badge.img+1
  • New Contributor
  • February 17, 2016

Hi,
You might need to get it from the developers website https://developer.apple.com/downloads/
Cheers!


rqomsiya
Forum|alt.badge.img+12
  • Author
  • Honored Contributor
  • February 17, 2016

That's where I downloaded it from. But it's a drag and drop app now. No longer a pkg. It also seems to install developer tools as well when first launched.


Forum|alt.badge.img+1
  • New Contributor
  • February 17, 2016

oh, ok.

You need to package it using Composer to just copy the app to /Applications.
Then you need to run on a script (set on a policy to after)

/usr/sbin/DevToolsSecurity -enable

Accept Xcode License

/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -license accept

Install Additional Components

/usr/sbin/installer -pkg /Applications/Xcode.app/Contents/Resources/Packages/MobileDevice.pkg -target /

/usr/sbin/installer -pkg /Applications/Xcode.app/Contents/Resources/Packages/MobileDeviceDevelopment.pkg -target /

Cheers,

m


rqomsiya
Forum|alt.badge.img+12
  • Author
  • Honored Contributor
  • Answer
  • February 17, 2016

Found this link from @rtrouton. Looks like if i download it from the MAS it will download in .pkg format. I have the post-install scripts already. Thanks for the replies and help! Much appreciated!

https://derflounder.wordpress.com/2016/02/15/certificate-expiration-and-downloaded-mac-app-store-installers/


Forum|alt.badge.img+4

I downloaded the xCode.app that goes in the Applications folder from the Developer program. When I try to make a package in Casper and I try to build the DMG it always fails with no error, just an error beep and the window will be frozen until i hit enter which it fails on. I can make any other package. I know its a huge app now, maybe 9GB? Is that probably why? Anyone packaged it this way?


rqomsiya
Forum|alt.badge.img+12
  • Author
  • Honored Contributor
  • February 19, 2016

Follow these instructions on getting the .pkg for XCode from the MAS:

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

Then you will need to run a few post install scripts. I'll post them later when I have my Mac on me.

Worked flawlessly.