[TIMOB-6818] iOS: Ti should include only the used features/libs into a new app
GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2012-03-27T13:48:25.000+0000 |
Affected Version/s | Release 1.8.0.1 |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Mauro Parra-Miranda |
Assignee | Don Thorp |
Created | 2011-12-21T11:20:08.000+0000 |
Updated | 2014-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
JSON Source
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
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.
Your steps to reproduce include "Compile to simulator", not "compile to device." If this is incorrect you need to update them.
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.
Closing issue as invalid. As per Stephen see TIMOB-6837