[TIMOB-7278] iOS : Modules - When including a local module and running on iOS Simulator, the modules contents are copied to into the application
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2016-08-23T20:45:36.000+0000 |
Affected Version/s | Release 2.0.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | qe-ios11612 |
Reporter | Michael Pettiford |
Assignee | Ingo Muschenetz |
Created | 2012-01-18T13:47:39.000+0000 |
Updated | 2017-03-16T21:38:17.000+0000 |
Description
<>
Steps 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 Simulator (e.g. iPhone simulator)
3. Navigate to the 'build/iphone/build/Debug-iphonesimulator' (or other target) folder for the application
4. Right-click on the application package and select "Show Package Contents"
Actual result:
If this issue hasn't been fixed there will be a module directory for the module you tested (i.e. ti.bump)
Expected result:
The module directory will not be included at the location specified above
I'm not entirely sure what the issue is here. As this is not about the device, issues of app size is not of concern. I don't see how these extraneous folders impact the functionality of testing of the application. Not even Apple is concerned with the authenticity of the simulator versus device, so I'm tempted to propose this one be resolved as 'won't fix'. We have larger fires to put out.
This is strictly a side effect of 'symlink for simulator' which is a problem that must be resolved.
This bug still occurs: Titanium Studio, build: 2.1.2.201208201549 Titanium SDK: 2.1.2.v20120824144611 OS: OS X 10.8 (Mountain Lion) Device Tested: Iphone Simulator. (5.1)
In Titanium SDK 3.0.0, the iOS build was completely re-written and no longer has this behavior. iOS module assets are copied into
build/iphone/build/Products/Debug-iphonesimulator/<appname>.app/modules/<module id>
. iOS module resources are copied intobuild/iphone/build/Products/Debug-iphonesimulator/<appname>.app
. It is possible for a module resource to overwrite an application's resource file or a previously processed resource. If the asset or resource is an image and<use-app-thinning>true</use-app-thinning>
is in the<ios>
section of thetiapp.xml
, then the images are copied directly into a dynamically generated asset catalog image set. For example, if the module'sassets
directory only contains images, then it will not create thebuild/iphone/build/Products/Debug-iphonesimulator/<appname>.app/modules/<module id>
directory. It's worth noting that all iOS apps will most likely have amodules
directory because if they use anything inTi.UI
, it copies in the default images: badge, close button, and default photo (in case the ImageView's image fails to load).Closing ticket as the issue cannot be reproduced.