DMG downloaded version of Xcode is much bigger than App Store version

Originator:steipete
Number:rdar://23681706 Date Originated:29-Nov-2015 11:17 AM
Status:Open Resolved:
Product:Developer Tools Product Version:any
Classification:Other Bug Reproducible:Always
 
This is a duplicate of rdar://20512651

Summary:

The version of Xcode that comes in DMGs on the Developer Portal is much bigger than the size of it when downloading via the App Store. Taking 6.3 as example, the difference is 1.4GB (4.0GB vs. 2.6GB). 

I have taken a random dylib as an example, and from that it seems this is simply a matter of the amount of debugging symbols being left in. When stripping both dylibs with maximum settings, the result is identical.

```
+ cp /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks/CoreGraphics.framework/Resources/libCGCorePDF.dylib app-store.dylib
+ cp /Applications/Xcode-6.3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks/CoreGraphics.framework/Resources/libCGCorePDF.dylib dmg.dylib
+ diff app-store.dylib dmg.dylib
Binary files app-store.dylib and dmg.dylib differ
+ strip -S -X -x -c app-store.dylib dmg.dylib
+ diff app-store.dylib dmg.dylib
```

Steps to Reproduce:

Download Xcode from the Developer Portal and from the App Store.

Expected Results:

Both versions are identical, except for the MAS Receipts.

Actual Results:

The DMG version is massively bigger.

Regression: 

Seems to be true for any recent version of Xcode.

Notes: -

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!