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
[PINNED] Large iOS app after upgrading to Flutter 1.12.13 #47101
Comments
This issue is because the the Flutter framework binaries are now in excess of 172MB even when we build a release app. This prevents even the smallest app being approved at the app store because of their size restrictions. |
Severe regression issue in 1.12.13. I have rolled back to 1.91 and the issue does not occur, until 1.12.13 is resolved I suggest (If you can do without what 1.12.13 offers) not upgrading to this release if you have imminent app store releases. |
i also build a very big iOS app with my project |
I have downgraded to 1.9.1. |
I have the same problem and hope to solve it quickly. |
@dnfield anything else we need to cover here in this issue? |
A Flutter Engine contact has advised me to go back to either 1.78 or 1.91 as this issue is not likely to be addressed or fixed any time soon. They mentioned that 1.12.x was an ambition release and lots of issues/regression bugs have arisen which will be addressed in the second quarter of 2020. |
All right. |
Can someone from the Flutter team please address this issue? |
Maybe off topic for this raised issue (so apologise in advance) , but I now have this issue #41679 - but this appears to be pre-1.12 , I wont know unless I rollback to 1.91 or 1.78 (Which I plan to do). This is quite severe , does anybody else have this ? Also mentioned here : And this one really shows the issue : Although the fix to the scaffold doesnt help me. |
This is not a bug, and is not as scary as it first may seem. The release Flutter.framework now contains bitcode, which makes for a very large intermediate artifact. This bitcode is either recompiled or stripped out automatically by the process of creating a distribution IPA. You can see this from Xcode by creating an ad hoc or development archive. Whether you check that or not, it will be done for you by Xcode and the App store (as seen by @songfei in #47101 (comment)). This is not a flutter specific issue, rather it's just the way LLVM bitcode works. You can read more details in our docs: https://flutter.dev/docs/resources/faq#how-big-is-the-flutter-engine You can also read about how this same issue affects other libraries like Realm: realm/realm-swift#4450 (comment) We all work hard to try to make stable releases stable. This one has had it's share of regressions, but happily the main issue reported here is not one of them. And FWIW, we have a performance benchmark for every commit that tracks the release size of iOS and Android apps. We take that very seriously. I'm going to close this issue. I'm also going to temporarily pin it since I suspect many will miss other forms of documentation linked in here. |
I'll leave this open for further comments as long as it doesn't get too spammy or off topic :) |
Oh, it all turned out to be a misunderstanding.Thank you. |
[✓] Flutter (Channel beta, v1.12.13+hotfix.6, on Mac OS X 10.15.2 19C57, locale en-CN) [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2) • No issues found! |
After I upgrade flutter to 1.12.13, I built a very big ios app with my flutter project. The ios app is 160+mb now.But before I upgrade flutter sdk, it is normal size 20+mb. The ios project has added a podfile,and I have updated the podfile to the newest podfile template.
The podfile content look like below:
The flutter sdk detail is :
Please help me to fix this problem.
The text was updated successfully, but these errors were encountered: