[TIMOB-16537] iOS: Titanium performs full rebuild after 3.2.0.GA
GitHub Issue | n/a |
Type | Bug |
Priority | Low |
Status | Reopened |
Resolution | Unresolved |
Affected Version/s | Release 3.2.1 |
Fix Version/s | n/a |
Components | CLI |
Labels | 3.2.0GA, cb-tooling, rebuild, studio |
Reporter | Alexandros |
Assignee | Chris Barber |
Created | 2014-01-23T12:38:22.000+0000 |
Updated | 2016-08-19T04:29:35.000+0000 |
Description
The scenario is as follows:
1. I build a project without any modules, everything ok.
2. I add a custom module and build again. This module requires to import external libs on the XCode project. The build fails as the libs are not there.
3. I open the XCode proj, add the libs.
4. Build from titanium again: now I get that it has to perform a full rebuild and XCode looses the references of the libs! Build fails.
Before 3.2 (and on ios 7 instead of iOS 7.03) step 4 was not doing a full rebuild of the project
Attachments
File | Date | Size |
checkbug.zip | 2014-02-13T19:10:38.000+0000 | 1571150 |
You cannot modify the Xcode project and expect the Titanium CLI to use it when rebuilding your app. I'm not a modules expert per se, but you will probably need to bundle all dependencies in your custom module.
That was exactly what I have been doing for some time Chris with the older version and it was very handful. I have indeed bundled all dependecies in my custom module. These are the same dependencies however that the XCode project also needs. As said, this is something that was working before 3.2.0.GA. So, what is the solution you propose in this case?
[~topcreations] When you say it was working before 3.2.0.GA, are you talking about 3.1.3.GA? Can you provide a reproducible test case? Can you give us your module to test with? If I can reproduce it, I'll reopen this ticket, fix it, escalate it, and ship it.
Build it using build.py and then copy the zip & extract it in the Library/Application Support/Titanium/modules folder as documented.
Chris I am attaching a demo module. This is a default module, with the only extra that I have added a 3rd party librady (BugSense) that I initialize on startup. When I build this (build.py) and then reference it from a newly created Titanium project, upon building I get The following build commands failed: [ERROR] : Ld build/Debug-iphonesimulator/testamodule.app/testamodule normal i386
Reopening this ticket to investigate further based on attached module.
Moving this ticket to engineering for further evaluation.