{ "id": "128600", "key": "TIMOB-16796", "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": "2014-04-11T22:05:13.000+0000", "created": "2014-04-02T15:58:27.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "APP-792585", "supportTeam", "triage" ], "versions": [ { "id": "15857", "description": "Release 3.2.2", "name": "Release 3.2.2", "archived": false, "released": true, "releaseDate": "2014-03-09" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-22T20:53:20.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" } ], "attachment": [ { "id": "47025", "filename": "Screen Shot 2014-03-25 at 9.57.08 AM (1).png", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-04-02T15:58:28.000+0000", "size": 112225, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Build fails to place JavaScript files into the iOS sim app", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "iOS 7.1\r\nOSX 10.9.2\r\nNPM 1.4.3\r\nNODE v0.10.26", "comment": { "comments": [ { "id": "299650", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Chris, FYI", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-02T21:10:13.000+0000", "updated": "2014-04-02T21:10:13.000+0000" }, { "id": "300527", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Chris, what's you opinion about this change. He deleted everything node and npm, npm cache cleaned upon re-install. Same result, still fails. Then he reset CLI hook.js per note above and it builds fine.", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-04-10T17:27:47.000+0000", "updated": "2014-04-10T17:27:47.000+0000" }, { "id": "300535", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~egomez] The problem here is the hook api needed to change between 3.2.0 and 3.2.1. 3.2.1 is now correct. You need to fix it in the offending hook. What hooks are being invoked? Look for a hook that has a 'pre' event callback and add version checks like this:\n\n{code}\nexports.init = function (logger, config, cli, appc) {\n cli.addHook('build.android.dexer', {\n pre: function (data, callback) {\n // do something with 'data'\n\n if (appc.version.gt(cli.version, '3.2.0')) {\n callback(null, data);\n } else {\n callback(data);\n }\n }\n });\n};\n{code}", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-04-10T17:49:00.000+0000", "updated": "2014-04-10T17:49:00.000+0000" }, { "id": "300603", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Can I check hooks from ti config? Otherwise, can you elaborate a bit more please.", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-04-10T22:00:50.000+0000", "updated": "2014-04-10T22:00:50.000+0000" }, { "id": "300623", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~egomez] You need to look in several places. ti config's \"paths.hooks\" will list all directories containing hooks that are loaded. You also need to look at what plugins are enabled in the tiapp.xml. Then look at each hook file and find the offending code and fix it using the code above. If you are using LiveView, you MUST update to the latest version. Studio may not be updating that properly. Make sure you do not have more than one version of a single hook that is being loaded.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-04-11T01:03:56.000+0000", "updated": "2014-04-11T01:03:56.000+0000" }, { "id": "300722", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Thanks. It seems the problem is solved. Removing the paths.hooks did the trick. Once they removed the Appcelerator Studio paths, the test project (and all others) build fine using un-altered CLI 3.2.1.\n\nPlease resolved ticket as applicable. ", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-04-11T22:03:12.000+0000", "updated": "2014-04-11T22:03:12.000+0000" }, { "id": "300723", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Resolving as invalid since the problem is in a CLI hook, not Titanium CLI or SDK.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-04-11T22:05:13.000+0000", "updated": "2014-04-11T22:05:13.000+0000" }, { "id": "414931", "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:53:20.000+0000", "updated": "2017-03-22T20:53:20.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }