{ "id": "165358", "key": "TIMOB-24325", "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": "18928", "name": "Release 6.0.2", "archived": false, "released": true, "releaseDate": "2017-02-27" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-01-25T11:49:36.000+0000", "created": "2017-01-18T18:28:07.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "ios", "media", "musiclibrary" ], "versions": [ { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" }, { "id": "18154", "name": "Release 6.0.1", "archived": false, "released": true, "releaseDate": "2016-12-21" } ], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2017-01-25T11:49:42.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": "When using {{Ti.Media.openMusicLibrary()}} without any other Ti.Media API, the build fails on 6.0.1.GA and 6.1.0.\r\n\r\nTest-Case:\r\n{code:js}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n});\r\n\r\nvar btn = Ti.UI.createButton({\r\n title: 'Trigger'\r\n});\r\n\r\nbtn.addEventListener('click', function() {\r\n Titanium.Media.openMusicLibrary({\r\n \tallowMultipleSelections : false,\r\n \tmediaTypes : Titanium.Media.MUSIC_MEDIA_TYPE_MUSIC|Titanium.Media.MUSIC_MEDIA_TYPE_ANY_AUDIO,\r\n \tsuccess : function(event) {\r\n \t\t// called when media returned from the MusicLibrary\r\n \t\tconsole.log(\"Results: \" + JSON.stringify(event));\r\n \t},\r\n \tcancel : function() {\r\n \t\talert(\"Aborting \");\r\n \t},\r\n \terror : function(error) {\r\n \t\t// called when there's an error\r\n \t\tvar a = Titanium.UI.createAlertDialog({\r\n \t\t\ttitle : 'Music Library'\r\n \t\t});\r\n \t\tif (error.code == Titanium.Media.NO_MUSIC_PLAYER) {\r\n \t\t\ta.setMessage('Please run this test on device.');\r\n \t\t} else {\r\n \t\t\ta.setMessage('Unexpected error: ' + error.code);\r\n \t\t}\r\n \t\ta.show();\r\n \t}\r\n });\r\n\r\n});\r\n\r\nwin.add(btn);\r\nwin.open();\r\n{code}", "attachment": [ { "id": "61281", "filename": "T24281-Full-Log.rtf", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-18T18:42:40.000+0000", "size": 1062322, "mimeType": "text/rtf" } ], "flagged": false, "summary": "iOS: Build fails when using only Ti.Media.openMusicLibrary", "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": 796, "state": "closed", "name": "2017 Sprint 02 SDK", "startDate": "2017-01-15T00:00:41.845Z", "endDate": "2017-01-29T00:00:00.000Z", "completeDate": "2017-01-30T21:10:44.640Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "404800", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/8763", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-01-18T18:32:17.000+0000", "updated": "2017-01-18T18:32:17.000+0000" }, { "id": "404807", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~hansknoechel] Thanks for creating the ticket. I have attached the full log. For reference, here is the environment I used:\r\nNPM Version: 2.15.9\r\nNode Version: 4.5.0\r\nMac OS: 10.12.1\r\nAppc CLI: 6.1.0\r\nAppc CLI NPM: 4.2.8\r\nTitanium SDK version: 6.1.0.v20170118081704 (failed for 6.0.1 as well)\r\nAppcelerator Studio, build: 4.8.1.201612050850\r\nXcode 8.2\r\niOS Device: 9 or 10 (tested on 9.2 and 10.2)\r\n\r\nThis is the error seen:\r\n{code}\r\n[ERROR] : ** BUILD FAILED **\r\n[ERROR] : The following build commands failed:\r\n[ERROR] : CompileC build/Intermediates/test1.build/Debug-iphoneos/test1.build/Objects-normal/armv7/MediaModule.o Classes/MediaModule.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler\r\n[ERROR] : (1 failure)\r\n{code}", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-18T18:51:53.000+0000", "updated": "2017-01-18T18:51:53.000+0000" }, { "id": "404976", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Completed FR Review and passed. This was the environment:\r\nNPM Version: 2.15.9\r\nNode Version: 4.5.0\r\nMac OS: 10.12.1\r\nAppc CLI: 6.1.0\r\nAppc CLI NPM: 4.2.8\r\nTitanium SDK version: 6.1.0.v20170120115404\r\nAppcelerator Studio, build: 4.8.1.201612050850\r\nXcode 8.2\r\niOS Device: 10\r\n\r\nI built to iOS device from Studio, and there were no build errors. The app installed, and I was able to use it.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-20T21:13:22.000+0000", "updated": "2017-01-20T21:13:22.000+0000" }, { "id": "404982", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Fixed in SDK 6.1.0.v20170120115404", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-20T21:51:22.000+0000", "updated": "2017-01-20T21:51:22.000+0000" }, { "id": "405034", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Reopening for backport to 6.0.2", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-01-22T16:16:33.000+0000", "updated": "2017-01-22T16:16:33.000+0000" }, { "id": "405061", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR (6_0_X): https://github.com/appcelerator/titanium_mobile/pull/8770", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-01-23T13:41:54.000+0000", "updated": "2017-01-23T13:41:54.000+0000" }, { "id": "405088", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "NPM Version: 2.15.9\r\nNode Version: 4.5.0\r\nMac OS: 10.12.1\r\nAppc CLI: 6.1.0\r\nAppc CLI NPM: 4.2.8\r\nTitanium SDK version: 6.0.2.v20170123062940\r\nAppcelerator Studio, build: 4.8.1.201612050850\r\nXcode 8.2\r\niOS Device: 10\r\n\r\nI built to iOS device from Studio, and there were no build errors. The app installed, and I was able to use it. Note that this is for the 6.0.2 backport version.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-23T18:14:11.000+0000", "updated": "2017-01-23T18:14:11.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }