{ "id": "171032", "key": "TIMOB-25752", "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": "20060", "description": "", "name": "Release 7.0.2", "archived": false, "released": true, "releaseDate": "2018-02-09" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-02-05T15:43:48.000+0000", "created": "2018-02-05T14:33:43.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "20060", "description": "", "name": "Release 7.0.2", "archived": false, "released": true, "releaseDate": "2018-02-09" } ], "issuelinks": [ { "id": "56294", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "inwardIssue": { "id": "170704", "key": "TIMOB-25640", "fields": { "summary": "iOS: Ti.Media.VideoPlayer \"playbackState\" constants are undefined", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2018-02-08T17:09:17.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 trying to run a build on an iPhone X, I'm not able to build the current 7.0.2 RC. You get the following trace output:\r\n\r\n```\r\n[TRACE] /build/iphone/Classes/MediaModule.m:257:52: error: use of undeclared identifier 'TiVideoPlayerPlaybackStateInterrupted'; did you mean 'MPNowPlayingPlaybackStateInterrupted'?\r\n[TRACE] MAKE_SYSTEM_PROP(VIDEO_PLAYBACK_STATE_INTERRUPTED, TiVideoPlayerPlaybackStateInterrupted);\r\n[TRACE] ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n[TRACE] MPNowPlayingPlaybackStateInterrupted\r\n[TRACE] In file included from /build/iphone/Classes/MediaModule.m:11:\r\n[TRACE] In file included from /build/iphone/Classes/MediaModule.h:15:\r\n[TRACE] In file included from /build/iphone/Classes/TiModule.h:10:\r\n[TRACE] In file included from /build/iphone/Classes/TiProxy.h:16:\r\n[TRACE] /build/iphone/Classes/TiBase.h:330:36: note: expanded from macro 'MAKE_SYSTEM_PROP'\r\n[TRACE] return [NSNumber numberWithInt:map]; \\\r\n[TRACE] ^\r\n[TRACE] In module 'MediaPlayer' imported from /build/iphone/Classes/MediaModule.h:12:\r\n[TRACE] /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPNowPlayingInfoCenter.h:49:5: note: 'MPNowPlayingPlaybackStateInterrupted' declared here\r\n[TRACE] MPNowPlayingPlaybackStateInterrupted\r\n[TRACE] ^\r\n[TRACE] /build/iphone/Classes/MediaModule.m:258:47: error: use of undeclared identifier 'TiVideoPlayerPlaybackStatePaused'; did you mean 'MPNowPlayingPlaybackStatePaused'?\r\n[TRACE] MAKE_SYSTEM_PROP(VIDEO_PLAYBACK_STATE_PAUSED, TiVideoPlayerPlaybackStatePaused);\r\n[TRACE] ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n[TRACE] MPNowPlayingPlaybackStatePaused\r\n[TRACE] In file included from /build/iphone/Classes/MediaModule.m:11:\r\n[TRACE] In file included from /build/iphone/Classes/MediaModule.h:15:\r\n[TRACE] In file included from /build/iphone/Classes/TiModule.h:10:\r\n[TRACE] In file included from /build/iphone/Classes/TiProxy.h:16:\r\n[TRACE] /build/iphone/Classes/TiBase.h:330:36: note: expanded from macro 'MAKE_SYSTEM_PROP'\r\n[TRACE] return [NSNumber numberWithInt:map]; \\\r\n[TRACE] ^\r\n[TRACE] In module 'MediaPlayer' imported from /build/iphone/Classes/MediaModule.h:12:\r\n[TRACE] /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPNowPlayingInfoCenter.h:47:5: note: 'MPNowPlayingPlaybackStatePaused' declared here\r\n[TRACE] MPNowPlayingPlaybackStatePaused,\r\n[TRACE] ^\r\n[TRACE] /build/iphone/Classes/MediaModule.m:259:48: error: use of undeclared identifier 'TiVideoPlayerPlaybackStatePlaying'; did you mean 'MPNowPlayingPlaybackStatePlaying'?\r\n[TRACE] MAKE_SYSTEM_PROP(VIDEO_PLAYBACK_STATE_PLAYING, TiVideoPlayerPlaybackStatePlaying);\r\n[TRACE] ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n[TRACE] MPNowPlayingPlaybackStatePlaying\r\n[TRACE] In file included from /build/iphone/Classes/MediaModule.m:11:\r\n[TRACE] In file included from /build/iphone/Classes/MediaModule.h:15:\r\n[TRACE] In file included from /build/iphone/Classes/TiModule.h:10:\r\n[TRACE] In file included from /build/iphone/Classes/TiProxy.h:16:\r\n[TRACE] /build/iphone/Classes/TiBase.h:330:36: note: expanded from macro 'MAKE_SYSTEM_PROP'\r\n[TRACE] return [NSNumber numberWithInt:map]; \\\r\n[TRACE] ^\r\n[TRACE] In module 'MediaPlayer' imported from /build/iphone/Classes/MediaModule.h:12:\r\n[TRACE] /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPNowPlayingInfoCenter.h:46:5: note: 'MPNowPlayingPlaybackStatePlaying' declared here\r\n[TRACE] MPNowPlayingPlaybackStatePlaying,\r\n[TRACE] ^\r\n[TRACE] /build/iphone/Classes/MediaModule.m:260:48: error: use of undeclared identifier 'TiVideoPlayerPlaybackStateStopped'; did you mean 'MPNowPlayingPlaybackStateStopped'?\r\n[TRACE] MAKE_SYSTEM_PROP(VIDEO_PLAYBACK_STATE_STOPPED, TiVideoPlayerPlaybackStateStopped);\r\n[TRACE] ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n[TRACE] MPNowPlayingPlaybackStateStopped\r\n[TRACE] In file included from /build/iphone/Classes/MediaModule.m:11:\r\n[TRACE] In file included from /build/iphone/Classes/MediaModule.h:15:\r\n[TRACE] In file included from /build/iphone/Classes/TiModule.h:10:\r\n[TRACE] In file included from /build/iphone/Classes/TiProxy.h:16:\r\n[TRACE] /build/iphone/Classes/TiBase.h:330:36: note: expanded from macro 'MAKE_SYSTEM_PROP'\r\n[TRACE] return [NSNumber numberWithInt:map]; \\\r\n[TRACE] ^\r\n[TRACE] In module 'MediaPlayer' imported from /build/iphone/Classes/MediaModule.h:12:\r\n[TRACE] /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPNowPlayingInfoCenter.h:48:5: note: 'MPNowPlayingPlaybackStateStopped' declared here\r\n[TRACE] MPNowPlayingPlaybackStateStopped,\r\n[TRACE] ^\r\n[TRACE] 4 errors generated.\r\n```\r\n\r\nResulting in:\r\n```\r\n[ERROR] ** BUILD FAILED **\r\n[ERROR] The following build commands failed:\r\n[ERROR] CompileC build/Intermediates/app.build/Debug-iphoneos/app.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```\r\n\r\n7.0.1.GA still works as expected with the same application code", "attachment": [], "flagged": false, "summary": "iOS: 7.0.2 RC fails to build on device due to Ti.Media errors", "creator": { "name": "jvandijk", "key": "jvandijk", "displayName": "Jeroen van Dijk", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "jvandijk", "key": "jvandijk", "displayName": "Jeroen van Dijk", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": null, "comment": { "comments": [ { "id": "434048", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Regression from TIMOB-25640\r\n\r\nPR (master): https://github.com/appcelerator/titanium_mobile/pull/9800\r\nPR (7_0_X): https://github.com/appcelerator/titanium_mobile/pull/9801\r\n\r\nTest-Case:\r\n1. Create an empty project\r\n2. Add {{Ti.API.info(Ti.Media.PLAYBACK_STATE_STOPPED);}} somewhere in the project\r\n3. Save an deploy to device\r\n\r\nExpected behavior: The build completes without errors!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-02-05T15:18:41.000+0000", "updated": "2018-02-05T15:24:58.000+0000" }, { "id": "434126", "author": { "name": "jvandijk", "key": "jvandijk", "displayName": "Jeroen van Dijk", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "I've just tested again with the new build (7.0.2.v20180205145048), but the change didn't result in a successful build. The exact same trace is still shown when build with this branch. As discussed on Slack, I'm only using `Ti.Media.openPhotoGallery` and `Ti.Media.showCamera`", "updateAuthor": { "name": "jvandijk", "key": "jvandijk", "displayName": "Jeroen van Dijk", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2018-02-06T19:39:33.000+0000", "updated": "2018-02-06T19:39:33.000+0000" }, { "id": "434177", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~jvandijk] The fix would not have been in that build. The fix will be in builds from 7.0.2.v20180207022213 forward.\r\n", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-02-07T17:31:58.000+0000", "updated": "2018-02-07T17:31:58.000+0000" }, { "id": "434186", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I tested with 7.0.2.v20180207022213 and the issue seems to be fixed. I tested with the RC version and was able to reproduce the issue (build failed) Then I tried with the fixed version and build succeeded, and I was able to launch and operate the app. This is my environment.:\r\n\r\nNode Version: 8.9.1\r\nNPM Version: 5.5.1\r\nMac OS: 10.13.1\r\nAppc CLI: 7.0.1\r\nAppc CLI NPM: 4.2.11\r\nTitanium SDK version: 7.0.2.v20180207022213\r\n\r\n\r\n", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-02-07T18:40:08.000+0000", "updated": "2018-02-07T18:40:08.000+0000" }, { "id": "434245", "author": { "name": "jvandijk", "key": "jvandijk", "displayName": "Jeroen van Dijk", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "I also can confirm that this is resolved. The change did exist in build 7.0.2.v20180205145048, but an include was missing.", "updateAuthor": { "name": "jvandijk", "key": "jvandijk", "displayName": "Jeroen van Dijk", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2018-02-08T12:49:57.000+0000", "updated": "2018-02-08T12:49:57.000+0000" }, { "id": "434263", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Great! I'll close the ticket.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-02-08T17:09:09.000+0000", "updated": "2018-02-08T17:09:09.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }