Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why are the installed Xcodes so huge? #10

Closed
neonichu opened this issue Apr 10, 2015 · 4 comments
Closed

Why are the installed Xcodes so huge? #10

neonichu opened this issue Apr 10, 2015 · 4 comments

Comments

@neonichu
Copy link
Collaborator

$ 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?

@neonichu neonichu added this to the 1.0 milestone Apr 10, 2015
@neonichu
Copy link
Collaborator Author

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.

@neonichu
Copy link
Collaborator Author

Shipped using ditto in ee76566

@neonichu
Copy link
Collaborator Author

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.

@neonichu
Copy link
Collaborator Author

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
Projects
None yet
Development

No branches or pull requests

1 participant