Packaging XCode 7.2 Drag and Drop

rqomsiya
Contributor III

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?

1 ACCEPTED SOLUTION

rqomsiya
Contributor III

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/

View solution in original post

6 REPLIES 6

maurie_b
New Contributor

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

rqomsiya
Contributor III

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.

maurie_b
New Contributor

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
Contributor III

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/

michael_ferguso
New Contributor

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
Contributor III

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.