Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7278] iOS : Modules - When including a local module and running on iOS Simulator, the modules contents are copied to into the application

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2016-08-23T20:45:36.000+0000
Affected Version/sRelease 2.0.0
Fix Version/sn/a
ComponentsiOS
Labelsqe-ios11612
ReporterMichael Pettiford
AssigneeIngo Muschenetz
Created2012-01-18T13:47:39.000+0000
Updated2017-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

Comments

  1. Blain Hamon 2012-01-23

    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.
  2. Stephen Tramer 2012-01-24

    This is strictly a side effect of 'symlink for simulator' which is a problem that must be resolved.
  3. Kanat Asanbekov 2012-08-24

    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)
  4. Chris Barber 2016-08-23

    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 into build/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 the tiapp.xml, then the images are copied directly into a dynamically generated asset catalog image set. For example, if the module's assets directory only contains images, then it will not create the build/iphone/build/Products/Debug-iphonesimulator/<appname>.app/modules/<module id> directory. It's worth noting that all iOS apps will most likely have a modules directory because if they use anything in Ti.UI, it copies in the default images: badge, close button, and default photo (in case the ImageView's image fails to load).
  5. Lee Morris 2017-03-16

    Closing ticket as the issue cannot be reproduced.

JSON Source