{ "id": "151922", "key": "TIMOB-19707", "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": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-10-28T01:21:18.000+0000", "created": "2015-10-09T23:35:05.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [ { "id": "49483", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "152403", "key": "TIMOB-19809", "fields": { "summary": "iOS: \"There are missing app icons\" error is returned if you build a mobile project pre-5.0.0 stack", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2015-10-28T18:15:00.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": "13103", "name": "CLI", "description": "Node-based command line interface" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "To create:\r\n* appc use 5.0.0\r\n* install 5.0.0.GA\r\n* appc new\r\n* appc run\r\n* appc ti clean\r\n* Remove SDK version from tiapp.xml\r\n* appc ti sdk install -d --branch 5_1_X 5.1.0.v20151021132025\r\n* appc use 5.0.3\r\n* appc run\r\n\r\n*Actual:* The following error is returned:\r\n{code}\r\n[ERROR] : /Users/wluu/Documents/Appcelerator_Studio_Workspace/monkeyPre/DefaultIcon.png cannot be used because it contains an alpha channel\r\n[ERROR] : Create an image named \"DefaultIcon-ios.png\" that does not have an alpha channel in the root of your project\r\n[ERROR] : It is highly recommended that the DefaultIcon.png be 1024x1024\r\nTRACE | titanium exited with exit code 1\r\nERROR | Error: ti run exited with error code 1\r\n at ChildProcess. (/Users/wluu/.appcelerator/install/5.1.0-38/package/node_modules/appc-cli-titanium/plugins/run.js:92:66)\r\n at ChildProcess.emit (events.js:110:17)\r\n at Process.ChildProcess._handle.onexit (child_process.js:1074:12)\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Error: \"DefaultIcon.png cannot be used because it contains an alpha channel\"", "creator": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "5_X_0 master", "closedSprints": [ { "id": 512, "state": "closed", "name": "2015 Sprint 21 Tooling", "startDate": "2015-10-12T21:15:56.572Z", "endDate": "2015-10-24T01:15:00.000Z", "completeDate": "2015-10-26T16:54:05.609Z", "originBoardId": 121 } ], "comment": { "comments": [ { "id": "367470", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This cannot break the build. We should remove the alpha channel:\r\n\r\nhttp://stackoverflow.com/questions/25681869/images-cant-contain-alpha-channels-or-transparencies", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-10-21T23:15:27.000+0000", "updated": "2015-10-21T23:15:27.000+0000" }, { "id": "367658", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Found a pure JS library that we can use. It does not properly compute the background color when removing the alpha channel, so I fixed it and submitted a PR: https://github.com/lukeapage/pngjs/pull/32.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2015-10-23T19:12:18.000+0000", "updated": "2015-10-23T19:12:18.000+0000" }, { "id": "367681", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Master PR: https://github.com/appcelerator/titanium_mobile/pull/7339\r\n5_1_X PR: https://github.com/appcelerator/titanium_mobile/pull/7340", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2015-10-23T21:45:52.000+0000", "updated": "2015-10-23T21:45:52.000+0000" }, { "id": "367710", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "PR merged.", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2015-10-23T23:41:19.000+0000", "updated": "2015-10-23T23:41:19.000+0000" }, { "id": "368015", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed, followed the provided steps and was able to build and launch app successfully:\r\n{code:java}\r\nINFO] Analyzing CommonJS modules\r\n[INFO] Creating asset catalog\r\n[INFO] Creating app icon set\r\n[WARN] Skipping Resources/iphone/appicon-60@2x.png because app icons must not have an alpha channel\r\n[WARN] Skipping Resources/iphone/appicon-60@3x.png because app icons must not have an alpha channel\r\n[WARN] Skipping Resources/iphone/appicon-76.png because app icons must not have an alpha channel\r\n[WARN] Skipping Resources/iphone/appicon-76@2x.png because app icons must not have an alpha channel\r\n[WARN] Skipping Resources/iphone/appicon-Small-40.png because app icons must not have an alpha channel\r\n[WARN] Skipping Resources/iphone/appicon-Small-40@2x.png because app icons must not have an alpha channel\r\n[WARN] Skipping Resources/iphone/appicon-Small.png because app icons must not have an alpha channel\r\n[WARN] Skipping Resources/iphone/appicon-Small@2x.png because app icons must not have an alpha channel\r\n[WARN] The default icon \"/Users/harrybryant/Documents/Appcelerator_Studio_Workspace/timob_19707/DefaultIcon.png\" contains an alpha channel which is not supported by iOS\r\n[WARN] The image will be flattened against a white background\r\n[WARN] You may create an image named \"DefaultIcon-ios.png\" that does not have an alpha channel in the root of your project\r\n[WARN] It is highly recommended that the DefaultIcon.png be 1024x1024\r\n[INFO] Creating launch image set\r\n[INFO] App thinning disabled, skipping asset image sets\r\n[INFO] Processing JavaScript files\r\n[INFO] Writing app properties\r\n[INFO] Writing i18n files\r\n[INFO] Processing Titanium symbols\r\n[INFO] Removing files\r\n[INFO] Invoking xcodebuild\r\n[INFO] Finished building the application in 32s 356ms\r\n[INFO] Launching iOS Simulator\r\n-- Start simulator log -------------------------------------------------------\r\n[INFO] Application started\r\n[INFO] timob_19707/1.0 (5.1.0.c914b0f)\r\n{code}\r\n\r\nMac OSX El Capitan 10.11 (15A284)\r\nTi SDK: 5.0.0.GA & 5.1.0.v20151026164636\r\nAppc NPM: 4.2.1-6\r\nAppc CLI: 5.0.0 & 5.0.3\r\nTi CLI: 5.0.4\r\nXcode 7.1(7B91b)\r\nNode v0.12.7\r\nproduction\r\n\r\n*Closing ticket.*", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2015-10-27T19:31:48.000+0000", "updated": "2015-10-27T19:32:18.000+0000" }, { "id": "368051", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Reopening to correct ticket description.", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-10-27T23:44:32.000+0000", "updated": "2015-10-27T23:44:32.000+0000" }, { "id": "368063", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Removed extraneous old build error log. This issue is meant to address the situation where a 5.0.0-era project fails for 5.0.3+. This is unacceptable as it is a patch-version update.\r\n\r\nThe breaking change of requiring a DefaultIcon.png or complete icon sets from 4.X to 5.X is acceptable as it is a breaking version update.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-10-28T01:21:18.000+0000", "updated": "2015-10-28T01:21:18.000+0000" }, { "id": "368155", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as per above comments.", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-10-28T18:14:48.000+0000", "updated": "2015-10-28T18:14:48.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }