{ "id": "165825", "key": "TIMOB-24380", "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": [ { "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" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-04-18T02:00:42.000+0000", "created": "2017-02-07T18:39:32.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "qe-6.1.0" ], "versions": [ { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-04-21T16:52:27.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": "*Description*\r\nWhen packaging an app to the iOS Tunes Store using the Ti SDK 6.1.0.v20170206114448, the following error appears in the console log;\r\n[ERROR] : ** ARCHIVE FAILED **\r\n\r\n[ERROR] : The following build commands failed:\r\n\r\n[ERROR] : PhaseScriptExecution Copy\\ Resources\\ to\\ Archive build/Intermediates/andorra.build/Release-iphoneos/andorra.build/Script-000000000000000000000001.sh\r\n\r\n[ERROR] : (1 failure)\r\n\r\n*Steps to reproduce*\r\n1. Create new application\r\n2. Package to iOS Tunes Store\r\n\r\n*Expected result*\r\nAn alert appears which says that the app has packaged and no errors appear in the console log. However, a ticket has been opened on this matter because the app does NOT package\r\n\r\n*Actual Result*\r\nThe app does not package and the error stated above appears in the console log.", "attachment": [ { "id": "61549", "filename": "dave 3.zip", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-02-10T17:33:15.000+0000", "size": 10314564, "mimeType": "application/zip" }, { "id": "61542", "filename": "Trace for TIMOB 24380.rtf", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-02-09T23:56:47.000+0000", "size": 3354839, "mimeType": "text/rtf" } ], "flagged": false, "summary": "iOS: Cannot package for iOS iTunes Store; PhaseScriptExecution error", "creator": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "MacOS 10.11.6 (15G31)\r\nStudio 4.8.1.201612050850\r\nTi SDK 6.1.0.v20170206114448\r\nAppc NPM 4.2.8\r\nAppc CLI 6.2.0-12\r\nTi CLI 5.0.11\r\nAlloy 1.9.6\r\nArrow 1.10.2\r\nXcode 8.2 (8C38)\r\nNode v4.6.0\r\nJava 1.7.0_80", "closedSprints": [ { "id": 870, "state": "closed", "name": "2017 Sprint 08 Tooling", "startDate": "2017-04-10T15:37:01.358Z", "endDate": "2017-04-24T15:37:00.000Z", "completeDate": "2017-04-23T21:40:36.711Z", "originBoardId": 199 } ], "comment": { "comments": [ { "id": "406533", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am able to reproduce this issue as well, with SDK 6.1.0.\r\n\r\nPackaging for App Store works with SDK 6.0.1.GA and 6.0.2\r\nAlso checked Ad Hoc packaging and it is working as expected with all latest SDKs.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-02-07T20:18:01.000+0000", "updated": "2017-02-07T20:18:01.000+0000" }, { "id": "406757", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Unable to reproduce using Titanium SDK master (6.1.0) and Xcode 8.2 (iOS 10.2) and Xcode 8.3 beta 2 (iOS 10.3).", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2017-02-09T18:58:06.000+0000", "updated": "2017-02-09T18:58:06.000+0000" }, { "id": "406776", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I have been able to reproduce this error. Environment used;\r\nMacOS 10.11.6 (15G31)\r\nStudio 4.8.1.201612050850\r\nTi SDK 6.1.0.v20170206114448\r\nAppc NPM 4.2.8\r\nAppc CLI 6.2.0-12\r\nTi CLI 5.0.11\r\nAlloy 1.9.6\r\nArrow 1.10.2\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-02-09T22:02:24.000+0000", "updated": "2017-02-09T22:02:24.000+0000" }, { "id": "406782", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~lmorris] Please attach the full TRACE log output from a CLEAN build of your app. Also, please zip up your test app and attach it so I can give it a try. You could have a edge case that I'm not seeing such as a space in a directory name or something. Thank you!", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2017-02-09T22:23:03.000+0000", "updated": "2017-02-09T22:23:03.000+0000" }, { "id": "406811", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~cbarber] Trace level output log and zipped App have been uploaded to this ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-02-10T17:35:31.000+0000", "updated": "2017-02-10T17:35:31.000+0000" }, { "id": "417431", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Steps to reproduce this issue:\r\n1. Create a new classic app in Studio.\r\n a. The SDK version should be 6.1.0.\r\n b. Uncheck \"Enable Services\"\r\n2. Package to iTunes Store\r\n3. The reported error will be seen:\r\n[ERROR] : PhaseScriptExecution Copy\\ Resources\\ to\\ Archive build/Intermediates/andorra.build/Release-iphoneos/andorra.build/Script-000000000000000000000001.sh", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-04-14T17:55:27.000+0000", "updated": "2017-04-14T17:55:27.000+0000" }, { "id": "417433", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Ti SDK master PR: https://github.com/appcelerator/titanium_mobile/pull/8962\r\nTi SDK 6_1_X PR: https://github.com/appcelerator/titanium_mobile/pull/8963\r\nTi SDK 6_0_X PR: https://github.com/appcelerator/titanium_mobile/pull/8964\r\n\r\nThe problem here is quite simple. If you have app thinning turned on, which is the default for new apps created in Studio using the default template, then the {{ArchiveStaging}} directory is empty. The \"Copy Resources to Archive\" script was using a wildcard which apparently will cause {{cp}} to complain if there's no files in the directory. Simply removing the {{*}} fixes it.\r\n\r\nTo test, build a vanilla classic app for {{dist-appstore}} with both app thinning enabled and disabled. You can do this from either the CLI or Studio.\r\n\r\nAlso note that this change also affects {{dist-adhoc}} builds too.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2017-04-14T18:49:01.000+0000", "updated": "2017-04-14T18:49:45.000+0000" }, { "id": "417436", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~hansknoechel] Yes, the error occurs with the lastest builds. Specifically:\r\n\r\nIt occurs with:\r\n6.1.0.v20170412080612\r\n6.2.0.v20170414065620\r\n\r\nIt does not occur with:\r\n6.0.4.v20170410103627", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-04-14T18:59:09.000+0000", "updated": "2017-04-14T18:59:09.000+0000" }, { "id": "417439", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~amukherjee] it should occur with 6.0.4 because the wildcard is present: https://github.com/appcelerator/titanium_mobile/blob/6_0_X/iphone/cli/commands/_build.js#L3074. Perhaps something with the app thinning changed in 6.1.x that leaves at least one file in the {{ArchiveStaging}} directory, but that's easily testable by deleting all images in the Resources directory.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2017-04-14T19:42:34.000+0000", "updated": "2017-04-14T19:42:34.000+0000" }, { "id": "417454", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~cbarber] Deleting all the images from the Resources directory did not help. However, when I disabled app thinning, packaging to iTunes Store did succeed with no errors.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-04-14T23:29:22.000+0000", "updated": "2017-04-14T23:29:22.000+0000" }, { "id": "417547", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Passed FR with this environment:\r\nNode Version: 6.10.1\r\nNPM Version: 3.10.10\r\nMac OS: 10.12.4\r\nAppc CLI NPM: 4.2.9\r\nTitanium SDK version: 6.0.3.GA\r\nAppcelerator Studio, build: 4.8.1.201612050850\r\nXcode 8.2.1\r\nSDK Version 6.04, 6.1.0, 6.2.0\r\n\r\nPackaged app to iOS iTunes Store, and Adhoc; no errors were thrown. Packaging was successful as well. FR passed.\r\n\r\nEDIT: Closing ticket as fixes were found in the following SDK's:\r\n6.2.0.v20170421072718\r\n6.1.0.v20170421082637\r\n6.0.4.v20170420100617", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-04-18T02:00:32.000+0000", "updated": "2017-04-21T16:52:20.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }