{ "id": "60990", "key": "TIMOB-358", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:52:48.000+0000", "created": "2011-04-15T02:27:47.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:52:48.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

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

\n

\nhttp://support.appcelerator.net/discussions/support/1153-removing-j...

{html}", "attachment": [ { "id": "17849", "filename": "new-project-error.rtf", "created": "2011-04-15T02:27:47.000+0000", "size": 35137, "mimeType": "text/rtf" } ], "flagged": false, "summary": "Build failure after removing all Titanium JavaScript (iPhone)", "creator": { "name": "kevinwhinnery", "key": "kevinwhinnery", "displayName": "kevinwhinnery", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kwhinnery", "key": "kwhinnery", "displayName": "Kevin Whinnery", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "123148", "author": { "name": "danpeterson", "key": "danpeterson", "displayName": "Dan Peterson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

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

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

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

{html}", "updateAuthor": { "name": "danpeterson", "key": "danpeterson", "displayName": "Dan Peterson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:27:47.000+0000", "updated": "2011-04-15T02:27:47.000+0000" }, { "id": "123149", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Invalidated by the switch to 0.9.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:27:47.000+0000", "updated": "2011-04-15T02:27:47.000+0000" }, { "id": "130832", "author": { "name": "nderzhak", "key": "nderzhak", "displayName": "Nikolai Derzhak", "active": true, "timeZone": "America/Phoenix" }, "body": "rollback wrong update", "updateAuthor": { "name": "nderzhak", "key": "nderzhak", "displayName": "Nikolai Derzhak", "active": true, "timeZone": "America/Phoenix" }, "created": "2011-04-15T07:56:18.000+0000", "updated": "2011-04-15T07:56:18.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }