-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Charts is ~20M when built. Desired? #1365
Comments
+1 even it takes time to Compile |
Charts is just code, so it won't take so much. |
@danielgindi My app is pure Swift, with the exception of XLForms (which was present before). |
To be clear about what I'm seeing (from an archive export):
|
The code itself, uncompiled, weight only a few hundred KBs, so I see no reason for this... |
Me neither. If it helps, I'm installing it with Cocoapods, and no Realm support (just |
I see that MathParser.framework also takes up 7MBs. I'm not familiar with that framework, but it seems to be something that's even less code than a charting library. Should be a few KBs compiled. |
Or could it be because of BitCode? Maybe the intermediate language that Apple uses to re-compile on their servers is MB hungry. |
I'll try compiling without Bitcode, that's an interesting hypothesis. |
Turning off Bitcode did nothing - if anything, it made it worse (!?). I'm going to agree that I have something bizarre in my project settings. I notice that even the |
FWIW, in my archive from April (pre Xcode 8), Charts is 10MB. Also note that "Highly unoptimized, with lot's of debugger overhead code..." doesn't necessarily mean smaller. My charts demo size analogous to daniel's above (i'm assuming that is from the iossimulator products folder?) is 4.4MB for debug and and 7.8MB for release. |
@dxclancy "highly unoptimized" means larger binary |
@Undo1 maybe you can post on Apple's forums about this? |
This seems to have been fixed by removing Cocoapods (completely) and manually including the .xcodeproj files for the various frameworks. I'm seeing Charts at 4.4MB in the archive now. Thank you for your time on this! |
As I mentioned in your earlier post #2015, Charts itself is about 6.5M after optimization. The dylib you are posting is Swift libraries, which are essential to run any swift code, so far you can do nothing until swift is ABI stable and release with the OS, not the app. Once swift is packed into iOS, app does not need to embed swift lib any more. |
You mean I don't care, this is no problem?Just see the blogger, wonder if something is wrong with my archive export. |
It should be the least thing you need to worry. |
Ok, then I can try to archive export the secure, thank you very much, |
I just noticed that the new version of my app (which adds Charts, from Cocoapods) is much bigger than it previously was. After some digging, I found that the Charts framework is the culprit, weighing in at ~20MB in a built IPA file.
Does this sound correct? Is there a way to trim it down? I'm only using a very simple line chart, so I suspect there's stuff in here I don't really need.
The text was updated successfully, but these errors were encountered: