Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Decrease iOS binary size
QtWS25 Last Chance

Decrease iOS binary size

Scheduled Pinned Locked Moved Mobile and Embedded
iosquick
4 Posts 2 Posters 2.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    m_andrej
    wrote on last edited by
    #1

    Hi,
    is it possible to optimize my project somehow so that the resulting application archive in iOS gets smaller? I already discovered that I can remove widgets module, which spares a couple of megabytes. I'm importing quick, core, gui modules in my *.pro file and in QML I'm importing QtQuick.Controls, QtQuick.Controls.Styles, QtQuick.Layouts, QtQuick.Window and QtQuick.XmlListModel. Do you think that by modifying my QML code not to use one of the above I could make the binary size noticeably smaller?

    Also, I noticed that the application package in Android is significantly smaller than in iOS (10 MB vs. 15 MB, with all dependencies in the archive). What could be the reason for that?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      alexvplay
      wrote on last edited by
      #2

      The main issue currently is that iOS bundle are built for two architectures, armv7 and arm64. You can decrease the bundle size by disabling auto-linking of all plugins and manually pick them for static linking: http://doc.qt.io/qt-5/plugins-howto.html#static-plugins

      This would probably give you another 1 or 2 MB of disk space reduction.

      Alex

      CoFounder of Felgo - https://felgo.com/qt

      Felgo simplifies Mobile App & Game Development with Qt
      What others say: Felgo scored #1 in Cross-Platform App Development Tools Report - see why: https://goo.gl/rgp3rq

      1 Reply Last reply
      1
      • M Offline
        M Offline
        m_andrej
        wrote on last edited by
        #3

        Thanks, I'll have a look.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          m_andrej
          wrote on last edited by m_andrej
          #4

          My app has even doubled its size after being approved by Apple! When it was in Test Flight beta testing, Test Flight was showing ~20 MB size, but now in App store it's 38 MB!
          I uploaded it via Xcode, so I don't know the size of the uploaded archive.

          Why did that happen?

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved