{ "id": "167890", "key": "TIMOB-24732", "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": "2017-06-21T15:32:01.000+0000", "created": "2017-05-24T10:29:47.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" }, { "id": "19333", "description": "Patch release for important items that did not make it into 6.0.3", "name": "Release 6.0.4", "archived": false, "released": true, "releaseDate": "2017-04-27" } ], "issuelinks": [], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2017-06-23T15:31:51.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" }, { "id": "10207", "name": "Tooling" } ], "description": "When trying to package a (large) module with CLI 6.2.1, the following error is thrown:\r\n{code}\r\n[INFO] Creating universal library\r\n[INFO] Verifying universal library\r\n[INFO] Creating module zip\r\n[INFO] Writing module zip: /Users/hknoechel/Documents/appcelerator_modules/ti.googlemaps/ios/ti.googlemaps-iphone-3.4.1.zip\r\nAn uncaught exception was thrown!\r\nundefined\r\nundefined\r\n{code}\r\nRolling back to 6.2.0 with {{appc use 6.2.0}} resolved the issue for me, so it has to be a regression.\r\n\r\nTo reproduce:\r\n1. Fork and download [this module|https://github.com/hansemannn/titanium-google-maps], which is the Ti.GoogleMaps module for Titanium\r\n2. Ensure the SDK version in ios/titanium.xcconfig is set to one available on your machine\r\n3. Build the module with {{appc ti build -p ios --build-only}}\r\n\r\nExpected: Module builds, new zip is writtent to the project root.\r\nActual: Module packaging crashes, a corrupt module zip is written to the project root.\r\n\r\nHowever, trying the same with [Ti.Facebook|https://github.com/appcelerator-modules/ti.facebook] does not throw an error, but installs the app on the similator instead of just building it (the {{--build-only}} flag is ignored). Something weird happened with this release.", "attachment": [], "flagged": false, "summary": "CLI: Module zip process will not wait for the zip to be fully complete", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 896, "state": "closed", "name": "2017 Sprint 11 SDK", "startDate": "2017-05-22T02:41:17.888Z", "endDate": "2017-06-05T02:41:00.000Z", "completeDate": "2017-06-05T00:14:33.418Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "420330", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~hansknoechel] so looking at it, the error occurs not when packaging the module but when extracting it, because the CLI is dropping the {{--build-only}} flag the build process is then creating, and building a titanium project with the examples in the repo. It attempts to unzip the module into a temporary directory and errors out with the below. \r\n{code}\r\n/usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:192\r\n throw e;\r\n ^\r\nInvalid or unsupported zip format. No END header found\r\n{code}\r\n\r\nBased off some bits that I saw I think we're not waiting for the zip to be fully written before moving on from [this function|https://github.com/appcelerator/titanium_mobile/blob/028882de90ef9e2c6d5c7e434178f28d276010fc/iphone/cli/commands/_buildModule.js#L541-L670], and this module is just exposing that because it produces a pretty big zip file\r\n\r\nI'm gonna move this over to TIMOB as it's in Titanium", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-05-24T15:59:37.000+0000", "updated": "2017-05-24T15:59:37.000+0000" }, { "id": "420367", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Master PR: https://github.com/appcelerator/titanium_mobile/pull/9083", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-05-24T20:06:53.000+0000", "updated": "2017-05-24T20:06:53.000+0000" }, { "id": "422623", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed, modules are now built correctly, and a working zip file was created. Running the example app as a new project with the newly built module to simulators and devices was also successful.\r\n\r\nTested On:\r\n\r\niPhone 7 10.3.2 Device & Simulator\r\nMac OS Sierra (10.12.5)\r\nTi SDK: 6.2.0.v20170622105148\r\nAppc NPM: 4.2.9\r\nApp CLI: 6.2.2\r\nXcode 8.3.3\r\nNode v4.6.0\r\n\r\n*Closing ticket.*", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2017-06-23T15:31:44.000+0000", "updated": "2017-06-23T15:31:44.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }