Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8428] iOS: Project does not rebuild when new modules are added to tiapp.xml

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2016-08-24T05:51:37.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.0.0
ComponentsiOS
Labelsn/a
ReporterIngo Muschenetz
AssigneeEric Merriman
Created2012-03-29T15:23:11.000+0000
Updated2017-03-16T21:39:27.000+0000

Description

Noted by Jeff H during a demo. Note that these steps _do_ appear to work for me, so I'm not sure if this was fixed already, or if there is a nuance I'm missing in the reproduction case.

Build an iOS project

Edit app.js to require the module

Add a new module to the project and edit the tiapp.xml manually to add the module

Rebuild the project. The app fails to run because it can't find the module. Doing a "Project > Clean" fixes it.

In speaking with Steven, it appears that platform needs to keep track of the last time the tiapp.xml was touched to know if it needs to do a rebuild.

Comments

  1. Chris Barber 2016-08-24

    In Titanium SDK 3.0.0, the iOS build was completely rewritten and keeps track of a hash of all modules, then persists it to a build manifest. During the next build, it will compare the hashes and if it changed, it will correctly rebuild the app.
  2. Lee Morris 2017-03-16

    Closing ticket as fixed.

JSON Source