Skip to content

Why are the installed Xcodes so huge? #10

Description

@neonichu
$ du -shc Xcode*
5.9G    Xcode-6.2.app
5.9G    Xcode-6.3.app

but App Store versions are ~2.5GB - I guess using cp -R is the correct way to copy stuff over and symlinks, etc. are retained by it. Maybe hard links or something else that cp destroys?

Activity

  1. added this to the 1.0 milestone on Apr 10, 2015
  2. neonichu commented on Apr 10, 2015

    @neonichu
    CollaboratorAuthor

    Using ditto instead of cp helps:

    $ du -shc Xcode*
    3.9G    Xcode-6.2.app

    This is consistent with the size inside the DMG:

    Volumes boris$ du -sch Xcode/
    3.9G    Xcode/

    Still begs the question why it is bigger than the App Store download.

  3. neonichu commented on Apr 10, 2015

    @neonichu
    CollaboratorAuthor

    Shipped using ditto in ee76566

  4. neonichu commented on Apr 12, 2015

    @neonichu
    CollaboratorAuthor

    OK, the rest of the difference in sizes seems to be attributable to differences in stripped symbols:

    + 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
    

    Don't really want to strip those symbols manually, so I guess a 📡 is in order.

  5. neonichu commented on Apr 12, 2015

    @neonichu
    CollaboratorAuthor

    Filed: http://www.openradar.me/20512651

    There's nothing that can be done apart from that right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions