ios - Flutter app size huge, how to reduce for ios
问题描述
#issue: ios app size going big.
We build An app For ios and android with flutter. For android this app size left 32 MB but when we upload the same app to appstore its size increased to 80 MB. Why? Can i get any idea?
解决方案
By default, launching your app with flutter run, or by clicking the Play button in your IDE generates a debug build of the Flutter app. The app size of a debug build is large due to the debugging overhead that allows for hot reload and source-level debugging. As such, it is not representative of a production app end users download.
Breaking down the size Starting in Flutter version 1.22 and DevTools version 0.9.1, a size analysis tool is included to help developers understand the breakdown of the release build of their application.
flutter build ios --analyze-size
Reducing app size When building a release version of your app, consider using the --split-debug-info tag. This tag can dramatically reduce code size. F Some of the other things you can do to make your app smaller are:
Remove unused resources Minimize resource imported from libraries Compress PNG and JPEG files
For more info check this
推荐阅读
- python - python - 如何在Python中将字符串从第一次出现的子字符串的索引切片到第二次出现的子字符串?
- android - 将 Ionic 应用程序部署到 Android 手机时出错 (Ionic 4)
- shared-nothing - 我不再需要帮助
- react-native - 如何动态渲染嵌套对象?
- r - 是否可以在shinyWidgets的函数pickerInput中使用尚未上传的数据框列的唯一值作为“选择”?
- c# - 如何从字符串创建插值字符串?
- php - PHP SoapClient没有得到子结构
- python - 检查对象的属性是否已定义
- ios - 禁止在 UIDocumentBrowserViewController 中导出或共享文档
- dart - 如何获取列表长度?