{ "id": "173653", "key": "TIMOB-27106", "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": "20033", "name": "Release 9.0.0", "archived": false, "released": true, "releaseDate": "2020-03-18" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-01-31T17:10:41.000+0000", "created": "2019-05-21T10:44:57.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "griffin-app", "iphone", "regression" ], "versions": [ { "id": "20432", "name": "Release 8.0.1", "archived": false, "released": true, "releaseDate": "2019-05-15" } ], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-02-03T11:30:11.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": "A simple ios project get a compilation error with 8.0.1.GA when using Music Library:\r\n\r\nE.g.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'white'\r\n});\r\nwin.open();\r\nwin.addEventListener('open', function() {\r\n Titanium.Media.openMusicLibrary();\r\n});\r\n{code}\r\n\r\nGets the following error:\r\n\r\n{code}\r\n[ERROR] ** BUILD FAILED **\r\n[ERROR] The following build commands failed:\r\n[ERROR] CompileC /Users/david/Titanium-Projects/test-2/build/iphone/build/Intermediates/test-2.build/Debug-iphoneos/test-2.build/Objects-normal/armv7/MediaModule.o /Users/david/Titanium-Projects/test-2/build/iphone/Classes/MediaModule.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler\r\n[ERROR] (1 failure)\r\n{code}\r\n\r\nNote the project must be cleaned (e.g. `ti clean`) before building in order to replicate the bug.\r\n\r\n\r\n", "attachment": [], "flagged": false, "summary": "iOS: MusicLibrary compilation error in 8.0.1.GA", "creator": { "name": "dbankier", "key": "dbankier", "displayName": "David Bankier", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dbankier", "key": "dbankier", "displayName": "David Bankier", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 1179, "state": "closed", "name": "2020 Sprint 3", "startDate": "2020-02-03T16:58:00.000Z", "endDate": "2020-02-14T16:58:00.000Z", "completeDate": "2020-02-17T09:45:06.128Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "448603", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Please share a trace log of the build? run the project with -l trace and attach the log in here. also, please provide the Xcode and ios SDK version. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2019-05-22T22:06:56.000+0000", "updated": "2019-05-22T22:06:56.000+0000" }, { "id": "448668", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "This is a regression of TIMOB-26681 (cc [~vijaysingh])", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-05-27T16:18:52.000+0000", "updated": "2019-05-27T16:18:52.000+0000" }, { "id": "448669", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Pull: https://github.com/appcelerator/titanium_mobile/pull/10913", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-05-27T16:23:27.000+0000", "updated": "2019-05-27T16:23:27.000+0000" }, { "id": "448674", "author": { "name": "dbankier", "key": "dbankier", "displayName": "David Bankier", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thank you Hans", "updateAuthor": { "name": "dbankier", "key": "dbankier", "displayName": "David Bankier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-05-28T09:02:05.000+0000", "updated": "2019-05-28T09:02:05.000+0000" }, { "id": "448710", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed, waiting on Jenkins build. [~hknoechel] [~vijaysingh] Looks like this will need a backport for 8.0.2?", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-05-29T12:35:06.000+0000", "updated": "2019-05-29T12:35:06.000+0000" }, { "id": "448712", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Merged to master, cherry-picked to 8_0_X", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-05-29T14:21:57.000+0000", "updated": "2019-05-29T14:21:57.000+0000" }, { "id": "448870", "author": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified the Fix on SDK 8.2.0.v20190605080023,8.1.0.v20190605095601 and 8.0.2.v20190605070127. No complication error.Works as expected .Closing.\r\n{code}\r\nName = Mac OS X\r\n Version = 10.13.6\r\n Architecture = 64bit\r\nNode.js\r\n Node.js Version = 8.9.1\r\n npm Version = 5.5.1\r\nTitanium CLI\r\n CLI Version = 5.1.1\r\nTitanium SDK\r\n SDK Version = 8.2.0.v20190605080023,8.1.0.v20190605095601 and 8.0.2.v20190605070127\r\nCli =7.0.11\r\nDevice =iphone 6s plus ios 12\r\n{code}", "updateAuthor": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-06-05T19:08:40.000+0000", "updated": "2019-06-05T19:08:40.000+0000" }, { "id": "452657", "author": { "name": "bhouse", "key": "bhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "body": "I am able to recreate this error in SDKs 8.2.1 and 8.3.X by adding this line:\r\n\r\n{{Ti.Media.hasMusicLibraryPermissions();}}\r\n\r\n\r\nThis is the error I am getting:\r\n\r\n{noformat}\r\n[ERROR] ** BUILD FAILED **\r\n[ERROR] The following build commands failed:\r\n[ERROR] CompileC /Users/brentonhouse/area51/axway/mobile/TIMOB-27106/build/iphone/build/Intermediates/TIMOB-27106.build/Debug-iphoneos/TIMOB-27106.build/Objects-normal/armv7/MediaModule.o /Users/brentonhouse/area51/axway/mobile/TIMOB-27106/build/iphone/Classes/MediaModule.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler\r\n[ERROR] (1 failure)\r\n{noformat}\r\n\r\n\r\nI have created a sample app to show the error here: https://github.com/brentonhouse/axway-TIMOB-27106\r\n\r\ncc: [~cwilliams]", "updateAuthor": { "name": "bhouse", "key": "bhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "created": "2019-11-13T23:33:08.000+0000", "updated": "2019-11-13T23:33:08.000+0000" }, { "id": "452660", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~bhouse] In your attached app I can not see the mentioned line. Can you create a new ticket and attach reproducible example please? Thanks!", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-11-14T00:18:45.000+0000", "updated": "2019-11-14T00:18:45.000+0000" }, { "id": "452661", "author": { "name": "bhouse", "key": "bhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "body": "It is in alloy.js: https://github.com/brentonhouse/axway-TIMOB-27106/blob/master/app/alloy.js", "updateAuthor": { "name": "bhouse", "key": "bhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "created": "2019-11-14T01:52:46.000+0000", "updated": "2019-11-14T01:52:46.000+0000" }, { "id": "453594", "author": { "name": "bhouse", "key": "bhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "body": "Re-opening issue as build is still failing on 8.3.0.GA with iOS AdHoc builds", "updateAuthor": { "name": "bhouse", "key": "bhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "created": "2020-01-09T21:31:52.000+0000", "updated": "2020-01-09T21:37:23.000+0000" }, { "id": "453607", "author": { "name": "bhouse", "key": "bhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "body": "In case it helps, I opened the project in Xcode and I could see more detailed errors coming from MediaModule.m\r\n\r\n{color:#d04437}\r\n{noformat}\r\nUse of undeclared identifier \"MPMediaLibrary\"\r\nUse of undeclared identifier \"MPMediaLibraryAuthorizationStatusAuthorized\"\r\n{noformat}\r\n{color}\r\n\r\n", "updateAuthor": { "name": "bhouse", "key": "bhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "created": "2020-01-09T21:53:09.000+0000", "updated": "2020-01-09T21:53:09.000+0000" }, { "id": "453741", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR - https://github.com/appcelerator/titanium_mobile/pull/11440", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-01-17T21:44:36.000+0000", "updated": "2020-01-17T21:44:36.000+0000" }, { "id": "453989", "author": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "body": "Original issue has long been fixed. I have been unable to replicate the 2nd issue brought forward by Brenton. Tried multiple SDK versions, appc ti clean, Adhoc builds etc. Compiles just fine. For this reason, I am closing this ticket.", "updateAuthor": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "created": "2020-01-31T17:10:17.000+0000", "updated": "2020-01-31T17:10:17.000+0000" }, { "id": "453990", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~ssaddique] Did you tried to run on device?", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-01-31T17:44:14.000+0000", "updated": "2020-01-31T17:44:14.000+0000" }, { "id": "454008", "author": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "body": "[~vijaysingh] Yes I did run on both device and simulator.", "updateAuthor": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "created": "2020-02-03T11:30:11.000+0000", "updated": "2020-02-03T11:30:11.000+0000" } ], "maxResults": 16, "total": 16, "startAt": 0 } } }