{ "id": "120522", "key": "TIMOB-15372", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2014-06-24T17:57:13.000+0000", "created": "2013-09-27T12:47:32.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "cli" ], "versions": [], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-31T17:32:59.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": [], "description": "I get this error every two or three builds:\r\n\r\n\r\n{code}\r\ntitanium build -p ios\r\n{code}\r\n\r\n{code}\r\n\r\n/Volumes/Data/titaniumsdks/Titanium/mobilesdk/osx/3.2.0.v20130828101643/node_modules/node-appc/node_modules/wrench/lib/wrench.js:302\r\n var filename = files.shift();\r\n ^\r\nTypeError: Cannot call method 'shift' of undefined\r\n at rmFile (/Volumes/Data/titaniumsdks/Titanium/mobilesdk/osx/3.2.0.v20130828101643/node_modules/node-appc/node_modules/wrench/lib/wrench.js:302:34)\r\n at /Volumes/Data/titaniumsdks/Titanium/mobilesdk/osx/3.2.0.v20130828101643/node_modules/node-appc/node_modules/wrench/lib/wrench.js:314:11\r\n at Object.oncomplete (fs.js:107:15)\r\n{code}\r\n\r\n\r\nI simply re-run the above command and after another try it works. Sometimes this doesn't happen, sometimes I need to re-run the command 45 times.\r\n\r\nThank you.", "attachment": [], "flagged": false, "summary": "iOS: Intermittent CLI build fails", "creator": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "environment": "SDK 3.2.0.v20130828101643\r\nTitanium CLI 3.1.2, Titanium CLI 3.1.3", "comment": { "comments": [ { "id": "273292", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello Dan Tamas,\r\n\r\nCan you please posting few test code and test cases for this issue? Thanks\r\n", "updateAuthor": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2013-09-28T04:35:22.000+0000", "updated": "2013-09-28T04:35:22.000+0000" }, { "id": "273295", "author": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "body": "Why did you close the ticket? \nWhen you ask for more info, you wait for it.\n\n\n", "updateAuthor": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-09-28T07:41:24.000+0000", "updated": "2013-09-28T07:41:24.000+0000" }, { "id": "273296", "author": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "updateAuthor": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-09-28T07:51:03.000+0000", "updated": "2013-09-28T07:51:03.000+0000" }, { "id": "273335", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We should not mark these tickets resolved until we have a resolution. It appears that this issue needs to be investigated based on the log here even if we don't have a test case.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-30T03:39:34.000+0000", "updated": "2013-09-30T03:39:34.000+0000" }, { "id": "273340", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Not sure why this ticket was assigned to me. It should be triaged and assigned to the right person.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-30T04:43:35.000+0000", "updated": "2013-09-30T04:43:35.000+0000" }, { "id": "310695", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "I just tested with 3.3.0-rc and I was unable to reproduce this issue.\r\n\r\nThis ticket is pretty old. I can't believe anybody is still having this issue today.\r\n\r\nIn Titanium 3.2.0, we shipped Wrench v1.5.4. In 3.3.0, we're using v1.5.8 which is the latest. Perhaps this issue was caused by a bug in that old version of Wrench or perhaps the bug was in the old iOS build. I rewrote significant portions of the iOS build towards the end of the 3.2.0 development cycle that would have been after 8/28/2013.\r\n\r\nResolving as could not reproduce. Please comment/re-open if you can still reproduce this with 3.2.3 or newer.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-06-24T17:57:08.000+0000", "updated": "2014-06-24T17:57:08.000+0000" }, { "id": "310702", "author": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "body": "Chris, since 3.2.x I don't think I have this issue anymore. Sometimes the cli won't upload on device, so it compiles then dies quietly without actually trying to upload the app on device. If I use any other utility to upload the app (fruitstrap based) all goes ok.\r\nBut I think this is another ticket :)", "updateAuthor": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-06-24T18:09:07.000+0000", "updated": "2014-06-24T18:09:07.000+0000" }, { "id": "310708", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "OK, cool.\r\n\r\nThe install to device since 3.2.x should be pretty smooth. If you figure out a reproducible pattern, please create a ticket and I'll get it fixed right away.\r\n\r\nOn a side note, you can always test it with [node-ios-device|https://www.npmjs.org/package/node-ios-device] directly:\r\n\r\n{code}\r\nnpm install node-ios-device\r\ncd node-ios-device\r\n{code}\r\n\r\nEdit {{tests/test-installApp.js}} and fix the path to the .app folder, cross your fingers, then run:\r\n\r\n{code}\r\nnode tests/test-installApp.js\r\n{code}", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-06-24T18:21:09.000+0000", "updated": "2014-06-24T18:21:09.000+0000" }, { "id": "310709", "author": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "body": "Cool, I'll have a look as soon as I'm back from Amsterdam ;)", "updateAuthor": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-06-24T18:32:43.000+0000", "updated": "2014-06-24T18:32:43.000+0000" }, { "id": "416514", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as I am unable to reproduce the issue using the following environment; \r\niPhone 7 (10.2) \r\nMacOS 10.11.6 (15G31) \r\nStudio 4.8.1.201612050850 \r\nTi SDK 6.0.3 GA \r\nAppc NPM 4.2.8 \r\nAppc CLI 6.1.0 \r\nTi CLI 5.0.11 \r\nAlloy 1.9.5 \r\nArrow 1.10.1 \r\nXcode 8.2 (8C38) \r\nNode v4.6.0 \r\nJava 1.7.0_80", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-31T17:32:59.000+0000", "updated": "2017-03-31T17:32:59.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }