GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-02-16T18:28:20.000+0000 |
Affected Version/s | Release 1.7.2 |
Fix Version/s | Sprint 2011-44, Release 1.8.0.1 |
Components | iOS |
Labels | module_build, qe-ios021312, qe-testadded |
Reporter | Jeff English |
Assignee | Stephen Tramer |
Created | 2011-08-16T11:29:17.000+0000 |
Updated | 2012-02-21T10:14:41.000+0000 |
When using a local module (module is installed into the application folder rather than the Titanium library folder), the entire module folder is copied into the application bundle during the build process. This increases the size of the application bundle since it could include a large library file as well as all of the assets defined in the module folder.
This does not occur when the module is installed in the Titanium library folder (/Library/Application Support/Titanium).
To reproduce,
1. Install an iOS module into the application's folder by placing the module's zip file in the application folder (e.g. ti.bump-iphone-1.0.zip)
2. Build the application for iOS (e.g. iPhone simulator)
3. Navigate to the 'build/iphone/build/Debug-iphoneos' (or other iphoneos build type) folder for the application
4. Right-click on the application package and select "Show Package Contents"
5. You should see the module folder with all of its sub-folders
Customer reported similar issue APP-373464: How to reduce app size
Verified fixed with Titanium Studio, build: 1.0.7.201112080131 and SDK 1.8.0.1.v20111209102124
Added label: qe-testadded.
Reopening this issue; Tested with Ti Studio build 1.0.8.201201171630 Ti Mob SDK 1.9.0.v20120113161633 OSX Lion iPhone 5.0 SIM I reached out to Jeff on this to confirm what is expected, and as per Jeff in
This cannot be tested with simulator; the module check is only performed for device/distribution builds. Once we change simulator installs to behave "more like" device and packaging, that will resolve the problem for simulator.
Closing this issue Tested this as per Stephens comment with the same environment above except built for device and confirmed the expected behavior
The bug is fixed in Snow Leopard, but I checked as far back as 1.8.0.1 in Lion and still found the bad behavior. When a Titanium iOS project containing a local module is built to device on Lion, a module zip exists in the iOS app package. Module Path: Titanium Studio Workspace/App/build/iphone/build/Debug-iphoneos/App.app/ti.bump-iphone-1.0.zip Bug Environment: SDK: 1.8.2.v20120216154635, 1.8.1, 1.8.0.1 Studio: 1.0.9.201202131024 OS: Lion Only
What Dustin is actually seeing here is correct; there should be the module *assets* as part of a packaged app, but not the module *binaries*. The bug is actually against Snow Lep if it doesn't have these assets packaged up as part of the adhoc/distributed app. Closing this bug as fixed, Dustin says he'll open a new bug about this behavior.
Added TIMOB-7702.