Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-358] Build failure after removing all Titanium JavaScript (iPhone)

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:52:48.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterKevin Whinnery
AssigneeReggie Seagraves
Created2011-04-15T02:27:47.000+0000
Updated2011-04-17T01:52:48.000+0000

Description

When you create a new project with Titanium Developer, open up index.js and remove all the code within the onload function - when you try and build and deploy the simulator, the build fails with the error I have attached. Reported by a community member, verified on my machine as well.

http://support.appcelerator.net/discussions/support/1153-removing-javascript-from-new-project-makes-the-build-fail"> http://support.appcelerator.net/discussions/support/1153-removing-j...

Attachments

FileDateSize
new-project-error.rtf2011-04-15T02:27:47.000+000035137

Comments

  1. Dan Peterson 2011-04-15

    I was able to work around it by just adding a bare reference to Titanium.UI like so:

       window.onload = function()
       {
         document.getElementById('phone').innerHTML = Titanium.Platform.name + ' ' + Titanium.Platform.version;
         Titanium.UI;
       }
       

    So it does seem as if it needs to see that to load necessary stuff.

  2. Stephen Tramer 2011-04-15

    Invalidated by the switch to 0.9.

  3. Nikolai Derzhak 2011-04-15

    rollback wrong update

JSON Source