{ "id": "64063", "key": "TIMOB-3431", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2016-08-19T21:27:30.000+0000", "created": "2011-04-15T03:45:08.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T20:57:03.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}

My files where placed in /Resources/iphone and the emulator\nbuilds worked fine but when I did HW builds the application would\ncrash on start on HW and even subsequent emulator builds.

\n

I traced it down to the build/iphone/Classes/defines.h file\nbeing re-created wrong by the HW build process.

\n

Taking my files our of /Resources/iphone directly into\n/Resources fixed the problem.

\n

Titanium SDK 1.2.2, Mobile SDK 1.6.1 and XCode 4 on Mac OS\n10.6

{html}", "attachment": [], "flagged": false, "summary": "defines.h files is not generated properly for HW builds when files are placed in /Resources/iphone directory", "creator": { "name": "danielarroyo", "key": "danielarroyo", "displayName": "Daniel Arroyo", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "danielarroyo", "key": "danielarroyo", "displayName": "Daniel Arroyo", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "133516", "author": { "name": "vware", "key": "vware", "displayName": "Robert Johnson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is not a problem just for code put into /Resources/iphone, its a problem for code put into any directory. For example, all of my code is stored in /Resources/common, and I just have a small app.js that simply executes a single line\n\napp.js\n\nti.include(\"common/app_main.js\");\n\ncommon/app_main.js\n\nti.API.info(titanium.App.id);\n\nThis will give an error that Titanium.App is undefined....\n\nBut its all because defines.h is created incorrectly at times. Its unable to figure out the proper dependencies if the code calling that Titanium functions are not in the root of the resources directory.\n\n", "updateAuthor": { "name": "vware", "key": "vware", "displayName": "Robert Johnson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-05-12T18:31:31.000+0000", "updated": "2011-05-12T18:31:31.000+0000" }, { "id": "393670", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "This hasn't been an issue in years. I'm sure it was fixed in 3.0.0 and improved since.\r\n\r\nBeing this ticket refers to Titanium SDK 1.2.2 and {{ti.include()}}, I'm marking this issue as invalid.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-08-19T21:27:30.000+0000", "updated": "2016-08-19T21:27:30.000+0000" }, { "id": "414939", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T20:57:03.000+0000", "updated": "2017-03-22T20:57:03.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }