Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6818] iOS: Ti should include only the used features/libs into a new app

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2012-03-27T13:48:25.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterMauro Parra-Miranda
AssigneeDon Thorp
Created2011-12-21T11:20:08.000+0000
Updated2014-06-19T12:43:13.000+0000

Description

PROBLEM DESCRIPTION

For iOS, when you create a new mobile project in Titanium Studio and run it on device, the ipa file it generates is well over 4MB.

STEPS TO REPRODUCE

1. Create new mobile project 2. Compile it to device 3. Check the size of the app.

ACTUAL RESULTS

App bigger than 4MB, even if it's an almost empty app.

EXPECTED RESULTS

Ti only adding the needed functionality, according to the namespaces used in the app.

Comments

  1. Stephen Tramer 2011-12-27

    iOS already does this during the compilation step, generating binaries for device which only include those modules referenced. There are other ways we intend to "slim" binary sizes for device, but simulator build sizes are not an accurate metric of distributed binary size. This ticket is related to several ongoing issues: * Slim TiCore into i386 and armv6/armv7-only versions * Improve build support by modularizing components
  2. David Rodriguez 2012-01-07

    This isn't the simulator build size. This file size is for the distributable that runs on the device. Even if using a release version compiled directly from xcode, the file size is still over 4MB.
  3. Stephen Tramer 2012-01-09

    Your steps to reproduce include "Compile to simulator", not "compile to device." If this is incorrect you need to update them.
  4. David Rodriguez 2012-01-09

  5. Stephen Tramer 2012-01-09

    This ticket has been resolved invalid due to the description (which is incorrect, Titanium already does this). Instead track TIMOB-6837 and see the discussion there for why building for device (not packaging) is also not a valid indicator of final app size.
  6. Michael Pettiford 2012-01-12

    Closing issue as invalid. As per Stephen see TIMOB-6837

JSON Source